Add CD action to update Homebrew formula

This commit is contained in:
Dario Vladovic 2020-06-16 21:45:08 +02:00 committed by Stephan Dilly
parent c97335435a
commit 0e3dfa4c42

View File

@ -71,7 +71,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Bump Brew
- name: Bump extrawurst/homebrew-tap formula
if: matrix.os == 'macos-latest'
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.BREW_TOKEN }}
@ -81,3 +81,11 @@ jobs:
--sha256=${{ steps.shasum.outputs.sha }} \
--url="https://github.com/extrawurst/gitui/releases/download/${{ steps.get_version.outputs.version }}/gitui-mac.tar.gz" \
extrawurst/tap/gitui
- name: Bump homebrew-core formula
uses: mislav/bump-homebrew-formula-action@v1
if: "matrix.os == 'macos-latest' && !contains(github.ref, '-')" # skip prereleases
env:
COMMITTER_TOKEN: ${{ secrets.BREW_TOKEN }}
with:
formula-name: gitui