File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -324,9 +324,13 @@ 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 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}"
327+ local url="https://api.github.com/orgs/${owner}/packages/container/${package_name}/versions"
328+ local versions_json="$(curl -s \
329+ -H "X-GitHub-Api-Version: 2022-11-28" \
330+ -H "Accept: application/vnd.github+json" \
331+ -H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
332+ $url)"
333+ >&2 echo 'versions json from ('"$url"') is: '"${versions_json}"
330334 local version_id=$(echo "${versions_json}" | jq -r --arg tag "$tag" '.[] | select(.metadata.container.tags[] == $tag) | .id')
331335 local package_url="https://github.com/${repo_name}/pkgs/container/${package_name}/${version_id}?tag=${tag}"
332336 if ! [ x$output = x -o x$output = x- ]; then
You can’t perform that action at this time.
0 commit comments