We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5894e0c commit 7d406d1Copy full SHA for 7d406d1
1 file changed
.github/workflows/discord-posts.yml
@@ -2,10 +2,13 @@ name: Discord notifications
2
3
on:
4
pull_request:
5
+ types: [closed]
6
7
jobs:
8
discordNotification:
9
runs-on: ubuntu-latest
10
+ if: github.event.pull_request.merged == true &&
11
+ github.event.pull_request.base.ref == 'master'
12
env:
13
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14
steps:
@@ -19,7 +22,7 @@ jobs:
19
22
20
23
- name: Send Discord notification
21
24
- DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_TEST_URL }}
25
+ DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
26
PR_TITLE: ${{ github.event.pull_request.title }}
27
PR_NUMBER: ${{ github.event.pull_request.number }}
28
PR_URL: ${{ github.event.pull_request.html_url }}
0 commit comments