mirror of
https://github.com/openziti/zrok.git
synced 2024-12-22 23:02:52 +01:00
Merge pull request #359 from openziti/brew-update
move homebrew version bump to run when fully released
This commit is contained in:
commit
7f320676f5
21
.github/workflows/homebrew.yml
vendored
Normal file
21
.github/workflows/homebrew.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
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@v2
|
||||
if: "!contains(github.ref, '-')"
|
||||
with:
|
||||
formula-name: zrok
|
||||
download-url: https://github.com/openziti/zrok/archive/${{ steps.extract-version.outputs.tag-name }}.tar.gz
|
||||
env:
|
||||
COMMITTER_TOKEN: ${{ secrets.BREW_COMMITTER_TOKEN }}
|
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@ -252,18 +252,3 @@ 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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user