zrok/.github/workflows/homebrew.yml
Rui Chen 7167251f98
workflows(homebrew): update url format
Signed-off-by: Rui Chen <rui@chenrui.dev>
2023-10-25 13:57:15 -04:00

22 lines
616 B
YAML

name: Homebrew Bump
on:
release:
types: [released]
jobs:
update-brew:
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@v3.1
if: "!contains(github.ref, '-')"
with:
formula-name: zrok
download-url: https://github.com/openziti/zrok/archive/refs/tags/${{ steps.extract-version.outputs.tag-name }}.tar.gz
env:
COMMITTER_TOKEN: ${{ secrets.BREW_COMMITTER_TOKEN }}