File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -324,9 +324,10 @@ jobs:
324324 local package_name=$(echo "${image_tag}" | rev | cut -d: -f2- | cut -d/ -f1 | rev)
325325 local repo_name='${{ github.repository }}'
326326 local owner='${{ github.repository_owner }}'
327- local version_id=$(curl -s -H "Authorization: Bearer "'${{ secrets.GITHUB_TOKEN }}' \
328- "https://api.github.com/orgs/${owner}/packages/container/${package_name}/versions" | \
329- jq -r --arg tag "$tag" '.[] | select(.metadata.container.tags[] == $tag) | .id')
327+ local versions_json="$(curl -s -H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
328+ "https://api.github.com/orgs/${owner}/packages/container/${package_name}/versions")"
329+ >&2 echo 'versions json is: '"${versions_json}"
330+ local version_id=$(echo "${versions_json}" | jq -r --arg tag "$tag" '.[] | select(.metadata.container.tags[] == $tag) | .id')
330331 local package_url="https://github.com/${repo_name}/pkgs/container/${package_name}/${version_id}?tag=${tag}"
331332 if ! [ x$output = x -o x$output = x- ]; then
332333 >>"$output" echo "${image_tag}@${package_url}"
You can’t perform that action at this time.
0 commit comments