From 268c660212d81de25b64d9ed9a73de98ba5938fe Mon Sep 17 00:00:00 2001 From: Cam Otts Date: Mon, 26 Jun 2023 23:53:07 -0500 Subject: [PATCH] add brew auto update --- .github/workflows/release.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33703a33..c289f44c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}