This commit is contained in:
andreas committed 2023-12-08 14:17:40 +01:00
1 parent a711f6e5cb
commit 37c6659976
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ inputs:
description: "list of tags"
required: true
outputs:
differs:
exist:
description: "Returns either true or false"
value: ${{ steps.check.outputs.differs }}
+1 -1
View File
@@ -2,7 +2,7 @@
set -e
TAGS=$((skopeo list-tags $1 || echo '{"Tags":[]}' )| jq '["alatest","latest"] - .Tags')
TAGS=$( (skopeo list-tags $1 || echo '{"Tags":[]}' )| jq '["alatest","latest"] - .Tags')
echo $TAGS | jq '"Tag not found: "+ .[]'
RESULT=$($TAGS | jq '.==[]')
if $RESULT == "true"