0
0

fix tag check

This commit is contained in:
Marco Maatz 2025-05-16 12:51:04 +02:00
parent d1ed2efaa6
commit 46cf10b319

View File

@ -20,6 +20,11 @@ jobs:
tag=$(curl -s -H "Authorization: token $API_TOKEN" "$GITEA_API_URL/repos/$OWNER/${{ inputs.repo }}/tags/${{ inputs.tag }}") 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" echo "Tag details: $tag"
if echo "$tag" | jq -e '.error' > /dev/null; then if echo "$tag" | jq -e '.error' > /dev/null; then