Skip to content

Comments

Improve cache-homebrew-prefix action#793

Merged
MikeMcQuaid merged 1 commit intomainfrom
cache_homebrew_prefix_tweaks
Feb 13, 2026
Merged

Improve cache-homebrew-prefix action#793
MikeMcQuaid merged 1 commit intomainfrom
cache_homebrew_prefix_tweaks

Conversation

@MikeMcQuaid
Copy link
Member

  • 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

Copilot AI review requested due to automatic review settings February 13, 2026 14:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 uninstall input to automatically remove existing formulae before installation
  • Added brewfile input to support installation from a ./Brewfile instead of specifying individual formula names
  • Changed behavior to only check for formulae (not casks), making the action more flexible
  • Made the install input optional (with mutual exclusivity between install and brewfile enforced)

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`
@MikeMcQuaid MikeMcQuaid force-pushed the cache_homebrew_prefix_tweaks branch from 4173c30 to ea75909 Compare February 13, 2026 14:50
@MikeMcQuaid MikeMcQuaid merged commit 0cdd034 into main Feb 13, 2026
12 checks passed
@MikeMcQuaid MikeMcQuaid deleted the cache_homebrew_prefix_tweaks branch February 13, 2026 18:05
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.

2 participants