blob: 3f4d073594415c44bcd99c92e7374b2f2d520370 [file] [log] [blame]
name: Discord Notification
on:
push:
branches:
- main
permissions: read-all
jobs:
notify-discord:
runs-on: ubuntu-latest
if: github.event.repository.fork == false
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch full history to handle commit ranges
- name: Send Discord notification
env:
DISCORD_WEBHOOK_FOR_COMMITS: ${{ secrets.DISCORD_WEBHOOK_FOR_COMMITS }}
run: python3 .github/scripts/discord_notify.py