devops -> main #50

Merged
akinus merged 1 commit from devops into main 2026-06-27 18:58:28 +00:00
Owner

Automated PR from CI pipeline.

Automated PR from CI pipeline.
fix(level1): robust release upload with explicit error reporting
All checks were successful
Level 2 — Devops / build-iterate (push) Successful in 1m28s
Level 2 — Devops / create-pr (push) Successful in 2s
Level 2 — Devops / close-merged-issue (push) Successful in 11s
992ccb9576
The 'Create Forgejo release + upload artifact' step has been failing
intermittently with no useful error message in the logs (just a 0s
step duration and 'Complete job' failure). Replace the
curl -fsS + bash-set-e pattern that swallows HTTP error bodies with:

- explicit empty-token guard that aborts with a clear ::error::
  message instead of an opaque 401
- python-generated JSON payload (replacing the heredoc-with-$(python)
  trick that lost the python exit code and could produce malformed
  JSON on weird content)
- use of git rev-parse HEAD (full SHA) instead of --short, since
  Forgejo's release API accepts either but full is unambiguous
- captured HTTP status + response body so any 4xx/5xx prints the
  actual server-side error message before the step aborts
- a visible skip message when the asset isn't available so it's
  obvious why the asset-upload block was skipped

Together these turn a silent 0s failure into a self-documenting run
that either succeeds or tells you exactly what the API rejected.
akinus merged commit 61f7a7fdd2 into main 2026-06-27 18:58:28 +00:00
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
akinus/akclip!50
No description provided.