ci: auto-bump the Homebrew cask on release (disabled by default)#5
Merged
Conversation
On a published GitHub Release, compute the new .dmg sha256 and update version + sha256 in the pixelvault-dev/homebrew-tap cask, so 'brew install --cask' stays current without manual edits. Gated behind the repo variable HOMEBREW_AUTO_BUMP (+ a HOMEBREW_TAP_TOKEN PAT with write access to the tap); the job is skipped until enabled. Co-Authored-By: Claude Opus 4.8 (1M context) <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.
Keeps the Homebrew tap self-maintaining: on a published GitHub Release, this workflow computes the new
.dmgsha256 and updatesversion+sha256in thepixelvault-dev/homebrew-tapcask — sobrew install --cask pixelvault-dev/tap/pixelvaultalways points at the latest build without manual edits.Gated off by default
Runs only when
HOMEBREW_AUTO_BUMP == 'true'; skipped entirely otherwise (no failures). To enable:HOMEBREW_AUTO_BUMP = trueHOMEBREW_TAP_TOKEN= a PAT (fine-grained or classic) with contents:write onpixelvault-dev/homebrew-tap(the defaultGITHUB_TOKENcan't push to another repo).Triggers on
release: published(which fires when you publish the draft), so the.dmgis final at that point.🤖 Generated with Claude Code