From 46cf10b319ea53b8578e4c639858d6df846e4358 Mon Sep 17 00:00:00 2001 From: Marco Maatz Date: Fri, 16 May 2025 12:51:04 +0200 Subject: [PATCH] fix tag check --- .gitea/workflows/checkForTag.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/checkForTag.yaml b/.gitea/workflows/checkForTag.yaml index 897e8e0..f94da7d 100644 --- a/.gitea/workflows/checkForTag.yaml +++ b/.gitea/workflows/checkForTag.yaml @@ -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