File size: 583 Bytes
121b532
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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. The last merged pull request is called '${{ github.event.head_commit.message }}'. Wormington just became an even more scholarly scholar! πŸ›πŸ›πŸ›πŸ›πŸ›\"}" \
        $DISCORD_WEBHOOK_URL