We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64fde3b commit cef4bb5Copy full SHA for cef4bb5
next-image-tag-number/action.sh
@@ -9,12 +9,11 @@ INITIAL_NUMBER=$4
9
TAG_PREFIX=$5
10
11
if [ -n "$BEARER_TOKEN" ]; then
12
- AUTH_HEADER="-H \"Authorization: Bearer ${BEARER_TOKEN}\""
+ TAGS_LIST_JSON=$(curl -fsS -H "Authorization: Bearer ${BEARER_TOKEN}" "${REPOSITORY_API_URL}/${IMAGE_NAME}/tags/list")
13
else
14
- AUTH_HEADER=""
+ TAGS_LIST_JSON=$(curl -fsS $AUTH_HEADER "${REPOSITORY_API_URL}/${IMAGE_NAME}/tags/list")
15
fi
16
17
-TAGS_LIST_JSON=$(curl -fs $AUTH_HEADER "${REPOSITORY_API_URL}/${IMAGE_NAME}/tags/list")
18
TAGS=$(echo "$TAGS_LIST_JSON" | jq -r '.tags[]' || echo "")
19
20
if [ -z "$TAGS" ]; then
0 commit comments