CI: no error message when a tag has no release yet

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-15 13:02:28 -04:00
co-authored by Claude Opus 5.5
parent 4da8487ef9
commit 82ff5336aa
+1 -1
View File
@@ -94,7 +94,7 @@ jobs:
auth="Authorization: token $TOKEN"
if [ "$REF_TYPE" = tag ]; then
# Reuse the release if this tag was built before.
id=$(curl -fsS -H "$auth" "$api/releases/tags/$REF_NAME" 2>/dev/null | node -p 'JSON.parse(require("fs").readFileSync(0)).id' || true)
id=$(curl -fsS -H "$auth" "$api/releases/tags/$REF_NAME" 2>/dev/null | node -p 'JSON.parse(require("fs").readFileSync(0, "utf8") || "{}").id ?? ""' || true)
if [ -z "$id" ]; then
# The changelog first (the app shows the text above "---" as what's new), then a note for this page.
body=$(node -e '