Skip to content

Commit 598f17e

Browse files
committed
Homebrew bump formula on release workflow
1 parent 7fa21cf commit 598f17e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Bump Homebrew formula
2+
3+
# More triggers
4+
# https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#release
5+
6+
# GitHub event payload
7+
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release
8+
9+
on:
10+
release:
11+
types: [published]
12+
13+
jobs:
14+
tweet:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Update Homebrew formula
18+
uses: dawidd6/action-homebrew-bump-formula@v3
19+
with:
20+
token: ${{ secrets.PHPSTAN_BOT_TOKEN }}
21+
formula: phpstan
22+
tag: ${{ github.event.release.tag_name }}
23+
revision: ${{ github.event.release.target_commitish }}

0 commit comments

Comments
 (0)