fix release workflow #128

Merged
AhmedHanafy725 merged 2 commits from development into main 2026-04-30 13:46:09 +00:00
Member
No description provided.
The two matrix jobs (amd64 + arm64) both reach the create-release step.
Previously the loser's POST hit a non-2xx response (release already
exists) and the unguarded `python3 ... print(['id'])` pipe crashed
with a JSONDecodeError on the empty body, failing the whole job.

Capture the POST status code and body separately. On 201 we're the
winner; otherwise re-fetch the existing release a few times so the
loser picks up the winner's release id. Both jobs then upload their
own assets.
fix(ci): collapse multi-line Python in get_release_id to a single line
All checks were successful
CI / build (push) Successful in 2m28s
CI / build (pull_request) Successful in 2m16s
6af692c9e3
The previous "import json,sys\ntry:\n..." block broke YAML's
literal-block indentation when one of the inner lines started at a
column shallower than the opening line, so the workflow failed to
parse. Use a one-liner that just reads .get('id','') to handle
JSON-without-id cleanly, and let 2>/dev/null + || true swallow any
other parse error.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_whiteboard!128
No description provided.