Skip to content

Commit 7d406d1

Browse files
committed
[bfops/discord-ping]: undo test commit
1 parent 5894e0c commit 7d406d1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/discord-posts.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ name: Discord notifications
22

33
on:
44
pull_request:
5+
types: [closed]
56

67
jobs:
78
discordNotification:
89
runs-on: ubuntu-latest
10+
if: github.event.pull_request.merged == true &&
11+
github.event.pull_request.base.ref == 'master'
912
env:
1013
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1114
steps:
@@ -19,7 +22,7 @@ jobs:
1922
2023
- name: Send Discord notification
2124
env:
22-
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_TEST_URL }}
25+
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
2326
PR_TITLE: ${{ github.event.pull_request.title }}
2427
PR_NUMBER: ${{ github.event.pull_request.number }}
2528
PR_URL: ${{ github.event.pull_request.html_url }}

0 commit comments

Comments
 (0)