From eefdda66f0d4a68bdf2cdd513579b903b029bb83 Mon Sep 17 00:00:00 2001 From: Leonhardt Koepsell Date: Sun, 10 Nov 2024 17:13:16 -0700 Subject: [PATCH] Fail the action if there is an issue retrieving tags --- next-image-tag-number/action.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next-image-tag-number/action.sh b/next-image-tag-number/action.sh index a91544f..f29fc7d 100755 --- a/next-image-tag-number/action.sh +++ b/next-image-tag-number/action.sh @@ -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