-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Homebrew TAP support #113
base: main
Are you sure you want to change the base?
Conversation
RELEASE_TAG=${GITHUB_REF/refs\/tags\//} | ||
echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_ENV | ||
- name: Update Homebrew formula | ||
uses: mislav/bump-homebrew-formula-action@v3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really understand what this is for / what this is doing? I'm assuming something to do with brew, but it's something I'm unfamiliar with. Can you give me a TLDR? or point me to some docs to understand this process please?
class PhpPie < Formula | ||
desc "PIE - the PHP Installer for Extensions" | ||
homepage "https://github.com/php/pie" | ||
url "https://github.com/php/pie/releases/download/0.2.0/pie.phar" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not hard-code this, the release process should be automated, and this will definitely be forgotten if it is not automated :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I went with making a separate repo for this, which would be expected to be written on by a bothttps://github.com/box-project/homebrew-box
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formula-path: homebrew/Formula/php-pie.rb | ||
homebrew-tap: php/pie | ||
download-url: https://github.com/php/pie/releases/download/${{ env.RELEASE_TAG }}/pie.phar | ||
commit-message: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this making a commit to php/pie
? 🤔
This requires adding a new secret to actions
ACCESS_TOKEN
with "repo" & "workflow" scopes.