From 1ef1ae48d142f00fed140b62882b8265553ac772 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Tue, 18 Mar 2025 19:05:43 +0100 Subject: [PATCH] .github: add discord notification action --- .github/workflows/discord.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/discord.yml diff --git a/.github/workflows/discord.yml b/.github/workflows/discord.yml new file mode 100644 index 0000000000..8ff49f5f58 --- /dev/null +++ b/.github/workflows/discord.yml @@ -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 }}** \ No newline at end of file