diff --git a/.github/workflows/bump-homebrew-formula.yml b/.github/workflows/bump-homebrew-formula.yml new file mode 100644 index 000000000..7baf77665 --- /dev/null +++ b/.github/workflows/bump-homebrew-formula.yml @@ -0,0 +1,24 @@ +name: Bump Homebrew Formula + +on: + workflow_dispatch: + push: + tags: + - '*' + +jobs: + bump-homebrew-formula: + runs-on: macos-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Bump Homebrew formulae + uses: dawidd6/action-homebrew-bump-formula@v3 + with: + formula: zinit + # A Personal Access Token (PAT) is instead of the default + # GITHUB_TOKEN because brew bump-formula-pr creates a fork of the + # formula's tap repository (if needed) and then creates a pull + # request. + token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0da1a70fa..42841c812 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,9 +2,6 @@ name: Release on: workflow_dispatch: - push: - tags: - - '*' jobs: release: @@ -33,19 +30,3 @@ jobs: GIT_AUTHOR_NAME: 'Vladislav Doster' GIT_COMMITTER_EMAIL: 'mvdoster@gmail.com' GIT_COMMITTER_NAME: 'Vladislav Doster' - - bump-homebrew-formula: - runs-on: macos-latest - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - name: Bump Homebrew formulae - uses: dawidd6/action-homebrew-bump-formula@v3 - with: - formula: zinit - org: zdharma-continuum - # A Personal Access Token (PAT) is instead of the default - # GITHUB_TOKEN because brew bump-formula-pr creates a fork of the - # formula's tap repository (if needed) and then creates a pull - # request. - token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}