fix tag check
This commit is contained in:
parent
d1ed2efaa6
commit
46cf10b319
@ -20,6 +20,11 @@ jobs:
|
||||
|
||||
tag=$(curl -s -H "Authorization: token $API_TOKEN" "$GITEA_API_URL/repos/$OWNER/${{ inputs.repo }}/tags/${{ inputs.tag }}")
|
||||
|
||||
if [ "$tag" = "404 page not found" ]; then
|
||||
echo "Tag not found"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Tag details: $tag"
|
||||
|
||||
if echo "$tag" | jq -e '.error' > /dev/null; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user