Skip to content

Commit 8a06b2f

Browse files
yepzdkclaude
andcommitted
Add Homebrew tap update to release workflow
Triggers repository_dispatch to yepzdk/homebrew-tools after release is created, which updates the formula automatically. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d9d5cbd commit 8a06b2f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/release.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,15 @@ jobs:
3232
dist/csm-linux-amd64
3333
dist/csm-linux-arm64
3434
generate_release_notes: true
35+
36+
- name: Update Homebrew formula
37+
env:
38+
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
39+
TAG_NAME: ${{ github.ref_name }}
40+
run: |
41+
VERSION="${TAG_NAME#v}"
42+
curl -X POST \
43+
-H "Accept: application/vnd.github+json" \
44+
-H "Authorization: token $HOMEBREW_TAP_TOKEN" \
45+
https://api.github.com/repos/yepzdk/homebrew-tools/dispatches \
46+
-d "{\"event_type\":\"update-csm\",\"client_payload\":{\"version\":\"$VERSION\"}}"

0 commit comments

Comments
 (0)