diff --git a/.github/workflows/discord-pr-notify.yml b/.github/workflows/discord-pr-notify.yml new file mode 100644 index 0000000..9546445 --- /dev/null +++ b/.github/workflows/discord-pr-notify.yml @@ -0,0 +1,21 @@ +name: Discord PR Notifier + +on: + workflow_dispatch: + pull_request: + types: [opened] + +jobs: + notify: + runs-on: ubuntu-latest + steps: + - name: Send Discord Notification + uses: Ilshidur/action-discord@master + with: + args: | + 🚀 **New Pull Request Opened!** + 📝 **Title:** ${{ github.event.pull_request.title }} + 🔗 <${{ github.event.pull_request.html_url }}> + 👤 **Author:** ${{ github.event.pull_request.user.login }} + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}