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:
@@ -94,7 +94,7 @@ jobs:
|
|||||||
auth="Authorization: token $TOKEN"
|
auth="Authorization: token $TOKEN"
|
||||||
if [ "$REF_TYPE" = tag ]; then
|
if [ "$REF_TYPE" = tag ]; then
|
||||||
# Reuse the release if this tag was built before.
|
# 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
|
if [ -z "$id" ]; then
|
||||||
# The changelog first (the app shows the text above "---" as what's new), then a note for this page.
|
# The changelog first (the app shows the text above "---" as what's new), then a note for this page.
|
||||||
body=$(node -e '
|
body=$(node -e '
|
||||||
|
|||||||
Reference in New Issue
Block a user