add brew auto update

This commit is contained in:
Cam Otts 2023-06-26 23:53:07 -05:00
parent 99e760fd4b
commit 268c660212
No known key found for this signature in database
GPG Key ID: 367B7C7EBD84A8BD

View File

@ -248,3 +248,17 @@ jobs:
args: release --config .goreleaser-release.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
update-brew:
needs: [publish-release]
runs-on: ubuntu-latest
steps:
- name: Extract Version
id: extract-version
run: |
printf "::set-output name=%s::%s\n" tag-name "${GITHUB_REF#refs/tags/}"
- uses: mislav/bump-homebrew-formula-action@v2
with:
formula-name: zrok
env:
COMMITTER_TOKEN: ${{ secrets.BREW_COMMITTER_TOKEN }}