Skip to content

Commit 6d0ab76

Browse files
add discordhook
1 parent 09ec0c3 commit 6d0ab76

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/discord.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Discord PR Notification
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
notify:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Send message to Discord
13+
run: |
14+
curl -X POST ${{ secrets.DISCORD_WEBHOOK }} \
15+
-H "Content-Type: application/json" \
16+
-d '{"content": "New PR created: ${{ github.event.pull_request.html_url }}"}'

0 commit comments

Comments
 (0)