-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update GitHub Actions for Homebrew Formula Automation #15
Conversation
This file contains 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
I was getting the error below while testing this Github Actions -- specifically:
After many failed attempts to fix it, this thread saved me thanks to @magodo's answer to set |
Added in a fix to be able to run homebrew to install dirmap now. A couple known bugs discovered and added to readme. |
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.
PR Description:
Summary: This PR updates the update-homebrew-formula.yaml workflow to improve the automation process for updating the Homebrew formula when a new release is published. The workflow has been enhanced to ensure the Homebrew formula is updated with the correct tarball URL, SHA256 checksum, and dependencies, and that changes are pushed back to the homebrew-dirmap repository automatically.
Key Changes:
Repository Checkout:
The homebrew-dirmap repository is now checked out directly using actions/checkout@v2. This eliminates the need for manually initializing and configuring the repository.
GitHub No-Reply Email:
To protect privacy, the workflow now uses GitHub’s no-reply email (12345678+username@users.noreply.github.com) for committing changes to the Homebrew formula, ensuring that the commit is still associated with the correct GitHub account without exposing personal email information.
Formula Update Process:
The workflow dynamically fetches the tarball URL and recalculates the SHA256 checksum for the new release. The dirmapper.rb formula file is then updated with this information, ensuring the Homebrew formula is always aligned with the latest version.
Commit and Push Changes:
After updating the formula file, the changes are committed and pushed back to the homebrew-dirmap repository’s master branch automatically.
Testing:
The workflow can now be manually triggered using workflow_dispatch with an input tag to test the updates without needing a new release.
A dry-run test was performed using a previous release tag to ensure the formula update logic works as expected.
Next Steps:
After merging this PR, the automated formula updates should work seamlessly with future releases of dirmap, ensuring the Homebrew tap is always up to date.