File size: 465 Bytes
f8772be
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7dd255f
f8772be
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name: Discord Notification

on:
  push:
    branches: [main]

jobs:
  notify:
    runs-on: ubuntu-latest

    steps:
      - name: Send Discord notification
        env:
          DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
        run: |
          curl -X POST -H "Content-Type: application/json" \
          -d "{\"content\": \"A new commit was pushed to the main branch by $GITHUB_ACTOR. :smile: Ponytails rock!\"}" \
          $DISCORD_WEBHOOK_URL