| Philip Zeyliger | 9e3c867 | 2025-05-27 17:09:14 +0000 | [diff] [blame] | 1 | name: Discord Notification |
| 2 | on: |
| 3 | push: |
| 4 | branches: |
| 5 | - main |
| 6 | |
| 7 | permissions: read-all |
| 8 | |
| 9 | jobs: |
| 10 | notify-discord: |
| 11 | runs-on: ubuntu-latest |
| Marc-Antoine Ruel | c139982 | 2025-06-08 17:47:50 +0000 | [diff] [blame] | 12 | if: github.event.repository.fork == false |
| Philip Zeyliger | 9e3c867 | 2025-05-27 17:09:14 +0000 | [diff] [blame] | 13 | steps: |
| 14 | - uses: actions/checkout@v4 |
| 15 | with: |
| Philip Zeyliger | cbf8c32 | 2025-07-16 15:25:39 -0700 | [diff] [blame] | 16 | fetch-depth: 2 |
| Philip Zeyliger | 9e3c867 | 2025-05-27 17:09:14 +0000 | [diff] [blame] | 17 | |
| 18 | - name: Send Discord notification |
| 19 | env: |
| 20 | DISCORD_WEBHOOK_FOR_COMMITS: ${{ secrets.DISCORD_WEBHOOK_FOR_COMMITS }} |
| 21 | run: python3 .github/scripts/discord_notify.py |