From b9013a215a16306f067d7448548bde1549829924 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Wed, 19 Feb 2025 11:48:54 +0100 Subject: [PATCH] Create discord-notify.yml --- .github/workflows/discord-notify.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/discord-notify.yml diff --git a/.github/workflows/discord-notify.yml b/.github/workflows/discord-notify.yml new file mode 100644 index 00000000..06a6f8d7 --- /dev/null +++ b/.github/workflows/discord-notify.yml @@ -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 }}"