Browse Source

Create discord-pr-notify.yml

Matt Rubens 11 months ago
parent
commit
7440f86d2d
1 changed files with 17 additions and 0 deletions
  1. 17 0
      .github/workflows/discord-pr-notify.yml

+ 17 - 0
.github/workflows/discord-pr-notify.yml

@@ -0,0 +1,17 @@
+on:
+  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!**
+            🔗 [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})
+            👤 **Author:** ${{ github.event.pull_request.user.login }}
+        env:
+          DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}