Randy Paffenroth commited on
Commit
f8772be
·
1 Parent(s): 98e6ad2

Added discord stuff

Browse files
.github/workflows/discord-notification.yml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Discord Notification
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ jobs:
8
+ notify:
9
+ runs-on: ubuntu-latest
10
+
11
+ steps:
12
+ - name: Send Discord notification
13
+ env:
14
+ DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
15
+ run: |
16
+ curl -X POST -H "Content-Type: application/json" \
17
+ -d "{\"content\": \"A new commit was pushed to the main branch by $GITHUB_ACTOR.\"}" \
18
+ $DISCORD_WEBHOOK_URL
19
+