Skip to content

Commit 09e04f4

Browse files
thealphacubicleSrihari Raman
andauthored
Bulletin workflow added (#65)
Co-authored-by: Srihari Raman <srihariraman@Sriharis-MacBook-Pro.local>
1 parent 878c44f commit 09e04f4

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Notify Bulletin
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
if: github.repository == 'thealphacubicle/OpenContext'
13+
14+
steps:
15+
- name: Publish bulletin
16+
run: |
17+
curl --fail -X POST https://opencontext-mcp.vercel.app/api/bulletin/publish \
18+
-H "Content-Type: application/json" \
19+
-H "X-Bulletin-Secret: ${{ secrets.BULLETIN_SECRET }}" \
20+
-d '{
21+
"commits": ${{ toJson(github.event.commits.*.message) }},
22+
"pusher": "${{ github.actor }}",
23+
"compare_url": "${{ github.event.compare }}"
24+
}'

0 commit comments

Comments
 (0)