Skip to content

Commit 6f8ce62

Browse files
authored
Add GitHub Actions workflow for Discord notifications
1 parent 2c57bef commit 6f8ce62

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/discord.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Discord 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 Discord notification
13+
run: |
14+
curl -H "Content-Type: application/json" \
15+
-X POST \
16+
-d '{
17+
"content":"New PR created: '${{ github.event.pull_request.html_url }}'"
18+
}' \
19+
${{ secrets.DISCORD_WEBHOOK }}

0 commit comments

Comments
 (0)