Skip to content

Commit f646727

Browse files
authored
Merge pull request #12 from devserkan/test-discord-notify-success
fix notify messages
2 parents 7d1d1a5 + ead1ba1 commit f646727

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pipeline.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: stegzilla/discord-notify@v2
3838
with:
3939
title: Deployment succeeded!
40-
message: "**${{ github.event.pull_request.title }}**\n**Creator:** ${{ github.event.pull_request.user.login }}\n${{ github.event.pull_request.html_url }}"
40+
message: "**${{ github.head_commit.message }}**\n**Creator:** ${{ github.head_commit.author.username }}\n${{ github.head_commit.url }}"
4141
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
4242
username: 'devserkan'
4343
colour: #1f883d
@@ -46,7 +46,7 @@ jobs:
4646
uses: stegzilla/discord-notify@v2
4747
with:
4848
title: Deployment failed!
49-
message: "**${{ github.event.pull_request.title }}**\n**Creator:** ${{ github.event.pull_request.user.login }}\n${{ github.event.pull_request.html_url }}"
49+
message: "**${{ github.head_commit.message }}**\n**Creator:** ${{ github.head_commit.author.username }}\n${{ github.head_commit.url }}"
5050
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
5151
username: 'devserkan'
5252
colour: #d73a49

0 commit comments

Comments
 (0)