Skip to content

Commit

Permalink
Fail the action if there is an issue retrieving tags
Browse files Browse the repository at this point in the history
  • Loading branch information
lnhrdt committed Nov 11, 2024
1 parent 20ff482 commit eefdda6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next-image-tag-number/action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ else
AUTH_HEADER=""
fi

TAGS_LIST_JSON=$(curl -s $AUTH_HEADER "${IMAGE_REPOSITORY_URL}/tags/list")
TAGS_LIST_JSON=$(curl -fs $AUTH_HEADER "${IMAGE_REPOSITORY_URL}/tags/list")
TAGS=$(echo "$TAGS_LIST_JSON" | jq -r '.tags[]' || echo "")

if [ -z "$TAGS" ]; then
Expand Down

0 comments on commit eefdda6

Please sign in to comment.