diff --git a/.github/workflows/notify-discord.yml b/.github/workflows/notify-discord.yml new file mode 100644 index 0000000..2e10c92 --- /dev/null +++ b/.github/workflows/notify-discord.yml @@ -0,0 +1,19 @@ +name: Notify Discord on PR + +on: + pull_request: + types: [opened] + +jobs: + discordNotification: + runs-on: ubuntu-latest + steps: + - name: Send message to Discord + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "username": "GitHub Bot", + "content": "šŸ“£ A new Pull Request was opened: **${{ github.event.pull_request.title }}**\nšŸ‘‰ URL: ${{ github.event.pull_request.html_url }}" + }' \ + ${{ secrets.DISCORD_WEBHOOK_URL }}