Create discord-notify.yml

This commit is contained in:
Stefan Pejcic 2025-02-19 11:48:54 +01:00 committed by GitHub
parent ad99760a03
commit b9013a215a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

15
.github/workflows/discord-notify.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: GitHub Issues to Discord
on:
issues:
types: [opened]
jobs:
notify-discord:
runs-on: ubuntu-latest
steps:
- name: Send Discord Notification
run: |
curl -H "Content-Type: application/json" \
-X POST \
-d "{\"content\": \"📢 **New issue reported:** ${{ github.event.issue.title }}\n🔗 ${{ github.event.issue.html_url }}\"}" \
"${{ secrets.DISCORD_WEBHOOK }}"