Skip to content

Update Homebrew Formula #5

Update Homebrew Formula

Update Homebrew Formula #5

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