Update Homebrew Formula #5
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: Update Homebrew Formula | |
on: | |
release: | |
types: [published] | |
jobs: | |
update-formula: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout software repo | |
uses: actions/checkout@v4 | |
with: | |
path: 'software' | |
- name: Checkout Homebrew tap | |
uses: actions/checkout@v4 | |
with: | |
repository: 'therealpaulgg/homebrew-ssh-sync' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
path: 'homebrew-tap' | |
- name: Update Homebrew formula | |
run: | | |
cd software | |
sh ./github/workflows/update_formula.sh | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Commit and push updates to the tap | |
run: | | |
cd homebrew-tap | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git commit -am "Update formula to version ${{ github.event.release.tag_name }}" || echo "No changes to commit" | |
git push |