PROJECT FILES GENERATED BY HOMEBREW:
brew tap-new --github-packages justenstall/test-tap
brew install justenstall/test-tap/<formula>
Or brew tap justenstall/test-tap
and then brew install <formula>
.
brew help
, man brew
or check Homebrew's documentation.
Private tap should copy the image from private to public tap, and the formula file should be the same in the public tap save for the path to the registry, which should be changed to the public project's registry. This allows the formula to install regularly from the public tap. If the formula can install regularly, then the Homebrew test-bot can install it in runners and package the result up as a bottle, and use that bottle to edit the formula code. Their scripts will be more stable than anything we could write, so this is a maintenance win.
In the publish.yml
/pr-pull
workflow, add --root-url=$ROOT_URL
to the run
command in "Pull bottles" job.
Figure out how you would like to automate adding the label pr-pull
to each PR that has finished running the tests.yml
/test-bot
workflow and is ready to have the formula update deployed. Could require approval, or could automate it for successful test-bot
workflow completion.
Project must allow pushing to default branch, even if it is protected.
GitHub Actions token for the repository must be granted read/write access rather than the default read only.