-
Notifications
You must be signed in to change notification settings - Fork 20
37 lines (33 loc) · 1.09 KB
/
publish-release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Release
on:
release:
types: [released]
jobs:
homebrew:
name: Bump Homebrew formula
runs-on: ubuntu-latest
steps:
- name: Bump v5.x formula
uses: mislav/bump-homebrew-formula-action@v2.2
if: "contains(github.ref, 'v5')"
with:
formula-name: zsh-abbr
formula-path: zsh-abbr.rb
homebrew-tap: olets/homebrew-tap
commit-message: |
feat({{formulaName}}): publish {{version}}
Created by https://github.com/mislav/bump-homebrew-formula-action
env:
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
- name: Bump v4.x formula
uses: mislav/bump-homebrew-formula-action@v2.2
if: "contains(github.ref, 'v4')"
with:
formula-name: zsh-abbr@4
formula-path: zsh-abbr@4.rb
homebrew-tap: olets/homebrew-tap
commit-message: |
feat({{formulaName}}): publish {{version}}
Created by https://github.com/mislav/bump-homebrew-formula-action
env:
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}