Skip to content

Commit bd8b9bb

Browse files
committed
build: debug the packages call
1 parent bad4768 commit bd8b9bb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)