Skip to content

Commit cd0d4a4

Browse files
Merge pull request #3 from Practical-DevOps-GitHub/feature/test-discord
Feature/test discord
2 parents bea6cfe + 11f45e3 commit cd0d4a4

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/discord.yml

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

src/.file

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dfgdfgasdasd

0 commit comments

Comments
 (0)