ci(release): fix the YAML of the release-id helper
VoidBuildSystem CI / build-and-test-gcc16 (push) Canceled after 0s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Canceled after 0s
VoidBuildSystem CI / sanitizers-gcc16 (push) Canceled after 0s
VoidBuildSystem CI / fuzz-clang (push) Canceled after 0s

This commit is contained in:
faumaray committed 2026-12-05 14:33:25 +03:00
1 parent 8e0dc8f1cc
commit c901d8d518
1 file changed
+1 -3
+1 -3
View File
@@ -96,9 +96,7 @@ jobs:
payload="$(printf '{"tag_name":"%s","name":"%s","body":"%s","draft":false,"prerelease":false}' \
"${tag}" "${tag}" "${body}")"
extract_id() {
python3 -c 'import json,sys
try: print(json.load(sys.stdin).get("id",""))
except Exception: print("")'
python3 -c 'import json,sys; s=sys.stdin.read().strip(); print(json.loads(s).get("id","") if s else "")' 2>/dev/null || true
}
# The release may already exist (e.g. created by hand for the tag): fall back to it.
created="$(curl -sS -X POST -H "Authorization: token ${TOKEN}" \