Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 30c134b

Browse files
committed
Trigger homebrew-tap update on release
1 parent 3e13feb commit 30c134b

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,15 @@ jobs:
5454
--generate-notes \
5555
.bin/*
5656
env:
57-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
- name: Trigger homebrew-tap update
59+
run: |
60+
VERSION="${{ steps.version.outputs.VERSION }}"
61+
VERSION="${VERSION#v}"
62+
gh api repos/alexei-led/homebrew-tap/dispatches \
63+
-f event_type=update-formula \
64+
-f 'client_payload[formula]=spotinfo' \
65+
-f "client_payload[version]=${VERSION}" \
66+
-f 'client_payload[repo]=alexei-led/spotinfo'
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.TAP_UPDATE_TOKEN }}

0 commit comments

Comments
 (0)