From 82ff5336aa76d93f04345e3b7f6d0a83afbb1534 Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 15 Oct 2026 13:02:28 -0400 Subject: [PATCH] CI: no error message when a tag has no release yet Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/android.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/android.yml b/.gitea/workflows/android.yml index 7fbadd2..ddbf49e 100644 --- a/.gitea/workflows/android.yml +++ b/.gitea/workflows/android.yml @@ -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 '