Skip to content

Commit 20ff482

Browse files
committed
Split the tags retrieval from parsing
1 parent c9a0c3a commit 20ff482

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

next-image-tag-number/action.sh

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

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

2223
if [ -z "$TAGS" ]; then
2324
echo "No existing tags were found. Using initial tag number ${INITIAL_NUMBER}."

0 commit comments

Comments
 (0)