Skip to content

Commit b9cab61

Browse files
authored
Create main.yml
1 parent 49a5db3 commit b9cab61

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Notify Discord on GitHub Events
2+
3+
on:
4+
push:
5+
pull_request:
6+
issues:
7+
issue_comment:
8+
fork:
9+
create:
10+
delete:
11+
release:
12+
# Add any other events you want to track
13+
14+
jobs:
15+
notify:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Send notification to Discord
20+
env:
21+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
22+
run: |
23+
curl -H "Content-Type: application/json" \
24+
-X POST \
25+
-d '{"username": "GitHub Actions", "content": "Something happened in GitHub!"}' \
26+
"$DISCORD_WEBHOOK"

0 commit comments

Comments
 (0)