Skip to content

Commit eefdda6

Browse files
committed
Fail the action if there is an issue retrieving tags
1 parent 20ff482 commit eefdda6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

next-image-tag-number/action.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ else
1717
AUTH_HEADER=""
1818
fi
1919

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

2323
if [ -z "$TAGS" ]; then

0 commit comments

Comments
 (0)