diff --git a/action.yml b/action.yml index 7921115..3ccaeeb 100644 --- a/action.yml +++ b/action.yml @@ -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 }} diff --git a/check.sh b/check.sh index f06c21b..67a577a 100755 --- a/check.sh +++ b/check.sh @@ -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"