Skip to content

fix(ci): handle GitHub release API failures safely#49

Open
Wangnov wants to merge 1 commit into
mainfrom
agent/fix-github-release-api-503
Open

fix(ci): handle GitHub release API failures safely#49
Wangnov wants to merge 1 commit into
mainfrom
agent/fix-github-release-api-503

Conversation

@Wangnov

@Wangnov Wangnov commented Jul 17, 2026

Copy link
Copy Markdown
Owner

What changed

  • add a shared GitHub API helper that retries HTTP 429/5xx failures
  • distinguish confirmed HTTP 404 responses from transient or unknown API errors
  • make Stable and Beta release publishing fail closed unless absence is confirmed
  • add regression coverage for recovered and persistent HTTP 503 responses

Root cause

The release probe and publisher treated any gh exit status of 1 as proof that a Release did not exist. During GitHub API HTTP 503 responses, the workflow therefore attempted to create an already-existing Release and failed with a release with the same tag name already exists.

Validation

  • bash -n scripts/*.sh
  • actionlint
  • all scripts/test-*.sh
  • git diff --check

@Wangnov
Wangnov marked this pull request as ready for review July 18, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant