There was an error while loading. Please reload this page.
1 parent a2115b4 commit a5d3b4cCopy full SHA for a5d3b4c
1 file changed
.github/workflows/discord-notify.yml
@@ -9,5 +9,10 @@ jobs:
9
runs-on: ubuntu-latest
10
steps:
11
- name: Send Discord notification
12
+ env:
13
+ DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
14
+ PR_TITLE: ${{ github.event.pull_request.title }}
15
+ PR_AUTHOR: ${{ github.event.pull_request.user.login }}
16
+ PR_URL: ${{ github.event.pull_request.html_url }}
17
run: |
- curl -H "Content-Type: application/json" -d "{\"content\": \"🔔 New Pull Request opened: **${{ github.event.pull_request.title }}** by ${{ github.event.pull_request.user.login }}\n${{ github.event.pull_request.html_url }}\"}" ${{ secrets.DISCORD_WEBHOOK }}
18
+ curl -H "Content-Type: application/json" -d "{\"content\": \"New Pull Request opened: **${PR_TITLE}** by ${PR_AUTHOR} - ${PR_URL}\"}" "$DISCORD_WEBHOOK"
0 commit comments