Skip to content

Commit

Permalink
Add required token for tag check
Browse files Browse the repository at this point in the history
The outer quote for the subshell isn't needed.
  • Loading branch information
mvdbeek committed Sep 28, 2023
1 parent 73b91f6 commit 3bb5f61
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/base-glibc-debian-bash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,14 @@ jobs:
run: |
# FIX upstream: Quay.io does not support immutable images currently.
# => Try to use the REST API to check for duplicate tags.
respone="$(
curl -sL \
response=$(
curl -H "Authorization: Bearer $TOKEN" \
-sL \
'https://quay.io/api/v1/repository/bioconda/${{ steps.buildah-build.outputs.image }}/image'
)"
)
existing_tags="$(
printf %s "${respone}" \
printf %s "${response}" \
| jq -r '.images[].tags[]'
)" \
|| {
Expand All @@ -117,6 +118,8 @@ jobs:
fi
fi
done
env:
TOKEN: ${{ secrets.secrets.QUAY_BIOCONDA_TOKEN }}

- if: ${{ github.ref == 'refs/heads/main' }}
name: Push
Expand Down

0 comments on commit 3bb5f61

Please sign in to comment.