Skip to content

Commit 0e3dfa4

Browse files
vladimyrStephan Dilly
authored andcommitted
Add CD action to update Homebrew formula
1 parent c973354 commit 0e3dfa4

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/cd.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
matrix:
1212
os: [ubuntu-latest, macos-latest, windows-latest]
13-
13+
1414
runs-on: ${{ matrix.os }}
1515
steps:
1616
- uses: actions/checkout@v2
@@ -39,7 +39,7 @@ jobs:
3939
run: |
4040
rustup target add x86_64-unknown-linux-musl
4141
sudo apt-get -qq install musl-tools
42-
42+
4343
- name: Build Release Mac
4444
if: matrix.os == 'macos-latest'
4545
run: make release-mac
@@ -71,13 +71,21 @@ jobs:
7171
env:
7272
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7373

74-
- name: Bump Brew
74+
- name: Bump extrawurst/homebrew-tap formula
7575
if: matrix.os == 'macos-latest'
76-
env:
76+
env:
7777
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.BREW_TOKEN }}
7878
run: |
7979
brew tap extrawurst/tap
8080
brew bump-formula-pr -f --version=${{ steps.get_version.outputs.version }} --no-browse --no-audit \
8181
--sha256=${{ steps.shasum.outputs.sha }} \
8282
--url="https://github.com/extrawurst/gitui/releases/download/${{ steps.get_version.outputs.version }}/gitui-mac.tar.gz" \
83-
extrawurst/tap/gitui
83+
extrawurst/tap/gitui
84+
85+
- name: Bump homebrew-core formula
86+
uses: mislav/bump-homebrew-formula-action@v1
87+
if: "matrix.os == 'macos-latest' && !contains(github.ref, '-')" # skip prereleases
88+
env:
89+
COMMITTER_TOKEN: ${{ secrets.BREW_TOKEN }}
90+
with:
91+
formula-name: gitui

0 commit comments

Comments
 (0)