Skip to content

Commit f132a72

Browse files
authored
automate homebrew release (#50)
1 parent 977418c commit f132a72

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/brew-release.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on:
2+
push:
3+
tags: 'v*'
4+
5+
jobs:
6+
homebrew:
7+
name: Bump Homebrew formula
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Extract version
11+
id: extract-version
12+
run: |
13+
echo "tag-name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
14+
- uses: mislav/bump-homebrew-formula-action@v2
15+
if: ${{ !contains(github.ref, '-') }} # skip prereleases
16+
with:
17+
formula-name: fzf-make
18+
formula-path: Formula/fzf-make.rb
19+
homebrew-tap: kyu08/homebrew-tap
20+
base-branch: main
21+
download-url: https://github.com/kyu08/fzf-make/releases/download/${{ steps.extract-version.outputs.tag-name }}/fzf-make
22+
commit-message: |
23+
{{formulaName}} {{version}}
24+
25+
Created by https://github.com/mislav/bump-homebrew-formula-action
26+
env:
27+
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}

0 commit comments

Comments
 (0)