feat: webhook to release to homebrew (#2010)

this triggers a full workflow that eventually create a PR in hombrew-cask repo
when this PR gets merged - all brew users can consume the new version
This commit is contained in:
ybeapps
2025-12-26 11:07:30 +02:00
committed by GitHub
parent e30ed896e2
commit 120a331151

22
.github/workflows/homebrew-notify.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: Notify Homebrew Tap
on:
release:
types: [published]
jobs:
notify-homebrew:
runs-on: ubuntu-latest
steps:
- name: Notify Homebrew tap
env:
TAG: ${{ github.event.release.tag_name }}
HOMEBREW_TAP_REPO_TOKEN: ${{ secrets.HOMEBREW_TAP_REPO_TOKEN }}
run: |
echo "📢 Notifying Homebrew tap of new release $TAG..."
curl -X POST \
-H "Authorization: token $HOMEBREW_TAP_REPO_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/ybeapps/homebrew-sourcegit/dispatches \
-d "{\"event_type\":\"new-sourcegit-release\",\"client_payload\":{\"version\":\"$TAG\"}}"
echo "✅ Homebrew tap notified successfully"