Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
therealpaulgg committed Mar 27, 2024
1 parent 1a6406d commit 9ddb376
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/update-homebrew-formula.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,29 @@ jobs:
update-formula:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- 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: |
# Example commands to update formula
# You'll need a script that updates your formula file with the new version and sha256
# This might involve downloading the release tarball, calculating its sha256, and updating the formula file accordingly
cd software
sh update_formula.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Commit and push
- 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 }}"
git commit -am "Update formula to version ${{ github.event.release.tag_name }}" || echo "No changes to commit"
git push

0 comments on commit 9ddb376

Please sign in to comment.