Repository navigation
ci: notify homebrew tap on published release - #67
Merged
Merged
Conversation
Add a final notify-tap job that sends a stack-release repository_dispatch to scbrown/homebrew-tap after the release is published. Fails closed and never fails the release run. Inactive until HOMEBREW_TAP_DISPATCH_TOKEN is set (aegis-7q7b). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a final
notify-tapjob to.github/workflows/release.ymlthat sendsrepository_dispatch(stack-release) to scbrown/homebrew-tap once a release is published, so the tap regenerates now rather than at its next hourly run. Approved 2026-11-10 (aegis-em2 / aegis-7q7b). Pairs with the scbrown/homebrew-tap PR that adds therepository_dispatchtrigger.Inactive until HOMEBREW_TAP_DISPATCH_TOKEN is set (aegis-7q7b).
goreleaser, plusrelease_createdon the main-push arm.if:also requiresgithub.event_name != 'pull_request'.needs.goreleaser.outputs.release_tagFail-closed behaviour (each exits 0 with no dispatch and does not fail the release run):
HOMEBREW_TAP_DISPATCH_TOKENempty:::warning::and exit 0.gh api repos/$REPO/releases/tags/$TAGfails, or the release is a draft or prerelease: no dispatch.-L): warning, no dispatch.Safety: fixed URL
https://api.github.com/repos/scbrown/homebrew-tap/dispatches; body built withjqfrom env vars;curl --fail --proto =https; token passed to curl on stdin (--config -), never on a command line or echoed; job-levelpermissions: contents: readonly; no third-party actions. The payload is informational: the tap still regenerates from each repo's latest stable release, and the hourly schedule stays as reconciliation.Validation: actionlint 1.7.12 (with shellcheck) clean for the new job; no new findings versus main. Step script exercised locally with stubbed gh/curl: no token, bad tag, draft, prerelease, 302 and 204 cases.
🤖 Generated with Claude Code