diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33703a33..e943e100 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -248,3 +248,18 @@ 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 + if: "!contains(github.ref, '-')" + with: + formula-name: zrok + env: + COMMITTER_TOKEN: ${{ secrets.BREW_COMMITTER_TOKEN }}