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 '