CS553_Example / .github /workflows /discord-notification.yml
Randy Paffenroth
Improved message
7dd255f
raw
history blame
465 Bytes
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