v0.0.1-beta.8 #15
Workflow file for this run
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
name: Package | |
on: | |
release: | |
types: | |
- published | |
workflow_dispatch: | |
jobs: | |
brew: | |
name: Update tap | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
path: code | |
- name: Checkout tap | |
uses: actions/checkout@v4 | |
with: | |
repository: pls-rs/homebrew-pls | |
path: tap | |
token: ${{ secrets.ACCESS_TOKEN }} | |
- name: Update tap | |
working-directory: code | |
run: | | |
./pkg/brew/update_formula.sh "pkg/brew/pls.template" "$GITHUB_WORKSPACE/tap/Formula/pls.rb" | |
- name: Commit and push changes | |
working-directory: tap | |
run: | | |
if ! git diff-index --quiet HEAD; then | |
git config user.name "Dhruv Bhanushali" | |
git config user.email "hi@dhruvkb.dev" | |
git commit --all --message "Update formula" | |
git push origin main | |
fi |