ci: tolerate 404 on release-tag existence check (set -e safety)
release / release (push) Successful in 4s

This commit is contained in:
2026-05-25 11:57:39 +02:00
parent c10f42d0a5
commit a2687a7bb3
+1 -1
View File
@@ -27,7 +27,7 @@ jobs:
run: | run: |
set -euo pipefail set -euo pipefail
# Create the release (or reuse if it already exists for this tag). # Create the release (or reuse if it already exists for this tag).
RID=$(curl -sf -H "Authorization: token $GITEA_TOKEN" \ RID=$(curl -s -H "Authorization: token $GITEA_TOKEN" \
"$API/repos/$REPO/releases/tags/$TAG" 2>/dev/null \ "$API/repos/$REPO/releases/tags/$TAG" 2>/dev/null \
| jq -r '.id // empty') | jq -r '.id // empty')
if [ -z "$RID" ]; then if [ -z "$RID" ]; then