We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e30ed89 commit 120a331Copy full SHA for 120a331
.github/workflows/homebrew-notify.yml
@@ -0,0 +1,22 @@
1
+name: Notify Homebrew Tap
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+jobs:
8
+ notify-homebrew:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Notify Homebrew tap
12
+ env:
13
+ TAG: ${{ github.event.release.tag_name }}
14
+ HOMEBREW_TAP_REPO_TOKEN: ${{ secrets.HOMEBREW_TAP_REPO_TOKEN }}
15
+ run: |
16
+ echo "📢 Notifying Homebrew tap of new release $TAG..."
17
+ curl -X POST \
18
+ -H "Authorization: token $HOMEBREW_TAP_REPO_TOKEN" \
19
+ -H "Accept: application/vnd.github.v3+json" \
20
+ https://api.github.com/repos/ybeapps/homebrew-sourcegit/dispatches \
21
+ -d "{\"event_type\":\"new-sourcegit-release\",\"client_payload\":{\"version\":\"$TAG\"}}"
22
+ echo "✅ Homebrew tap notified successfully"
0 commit comments