ci(release): fix the YAML of the release-id helper
This commit is contained in:
1 parent
8e0dc8f1cc
commit
c901d8d518
1 file changed
+1
-3
@@ -96,9 +96,7 @@ jobs:
|
|||||||
payload="$(printf '{"tag_name":"%s","name":"%s","body":"%s","draft":false,"prerelease":false}' \
|
payload="$(printf '{"tag_name":"%s","name":"%s","body":"%s","draft":false,"prerelease":false}' \
|
||||||
"${tag}" "${tag}" "${body}")"
|
"${tag}" "${tag}" "${body}")"
|
||||||
extract_id() {
|
extract_id() {
|
||||||
python3 -c 'import json,sys
|
python3 -c 'import json,sys; s=sys.stdin.read().strip(); print(json.loads(s).get("id","") if s else "")' 2>/dev/null || true
|
||||||
try: print(json.load(sys.stdin).get("id",""))
|
|
||||||
except Exception: print("")'
|
|
||||||
}
|
}
|
||||||
# The release may already exist (e.g. created by hand for the tag): fall back to it.
|
# 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}" \
|
created="$(curl -sS -X POST -H "Authorization: token ${TOKEN}" \
|
||||||
|
|||||||
Reference in new issue
Block a user