.github: add discord notification action

This commit is contained in:
Sina Mahmoodi 2025-03-18 19:05:43 +01:00
parent c4f0450710
commit 1ef1ae48d1

20
.github/workflows/discord.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Discord Notifications
on:
issues:
types: [opened]
pull_request:
types: [opened, merged]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: Ilshidur/action-discord@master
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
with:
args: >
New **${{ github.event_name }}**:
[#${{ github.event.issue.number || github.event.pull_request.number }} - ${{ github.event.issue.title || github.event.pull_request.title }}](${{ github.event.issue.html_url || github.event.pull_request.html_url }})
by **${{ github.actor }}**