Skip to content

Guard cli-post-release on cli-release success for the same tag#2854

Open
mikeland73 wants to merge 1 commit into
mainfrom
mikeland73/guard-post-release
Open

Guard cli-post-release on cli-release success for the same tag#2854
mikeland73 wants to merge 1 commit into
mainfrom
mikeland73/guard-post-release

Conversation

@mikeland73
Copy link
Copy Markdown
Collaborator

What

cli-post-release runs on the GitHub release: [released] event and promotes the tag to stable in S3. That event can fire even when cli-release failed partway (or a release was published by other means), which would promote a broken build.

This adds a check-release gate job (which publish now needs:) that waits for the cli-release workflow run for the same commit to finish and fails if it did not succeed, using int128/wait-for-workflows-action.

Notes

  • sha: ${{ github.sha }} — on the release event this is the tag's commit, matching the SHA cli-release ran on.
  • filter-workflow-events: push — overrides the action's default (current event = release); cli-release is triggered by the tag push.
  • filter-workflow-names: cli-release — waits only on that workflow.

The common case (tests fail → release job skipped → no release published) already never fires the event; this guard covers the partial-failure / externally-published edge cases.

🤖 Generated with Claude Code

cli-post-release runs on the `released` event and promotes the tag to
stable in S3. That event can fire even when cli-release failed partway
(or a release is published by other means), so gate the publish job on a
check that the cli-release workflow for the same commit actually
succeeded, using int128/wait-for-workflows-action.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mikeland73 mikeland73 requested review from Lagoja and Copilot and removed request for Copilot June 7, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant