Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances the cache-homebrew-prefix action with two main features: automatic cleanup of existing formulae via brew test-bot --only-cleanup-before when uninstall=true, and support for installing formulae from a Brewfile using brew bundle.
Changes:
- Added
uninstallinput to automatically remove existing formulae before installation - Added
brewfileinput to support installation from a./Brewfileinstead of specifying individual formula names - Changed behavior to only check for formulae (not casks), making the action more flexible
- Made the
installinput optional (with mutual exclusivity betweeninstallandbrewfileenforced)
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| cache-homebrew-prefix/action.yml | Added new inputs (brewfile, uninstall), implemented cleanup logic with brew test-bot, and added Brewfile support with brew bundle |
| cache-homebrew-prefix/README.md | Updated documentation to describe new inputs, usage examples, and behavior changes regarding formulae-only checking |
| .github/workflows/cache-homebrew-prefix.yml | Added two test jobs to verify the new features: one for install with uninstall=true, and one for brewfile with uninstall=true |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Add option to uninstall existing formulae before installing new ones by calling `brew test-bot --only-cleanup-before` - Add option to install formulae from a `Brewfile`
4173c30 to
ea75909
Compare
p-linnane
approved these changes
Feb 13, 2026
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.
brew test-bot --only-cleanup-beforeBrewfile