Skip to content

Commit f098152

Browse files
authored
Merge pull request #10 from devserkan/test-discord-notify-success
change notify action library
2 parents d79b777 + 0bfbe72 commit f098152

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/pipeline.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@ jobs:
3434
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
3535
- name: Notify Discord on success
3636
if: ${{ success() && env.SHOULD_DEPLOY == 'true' }}
37-
uses: rjstone/discord-webhook-notify@v1
37+
uses: stegzilla/discord-notify@v2
3838
with:
39-
severity: info
40-
details: Deployment succeeded!
41-
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
39+
title: Deployment succeeded!
40+
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
4241
username: 'devserkan'
42+
colour: #1f883d
4343
- name: Notify Discord on failure
4444
if: ${{ failure() && env.SHOULD_DEPLOY == 'true' }}
45-
uses: rjstone/discord-webhook-notify@v1
45+
uses: stegzilla/discord-notify@v2
4646
with:
47-
severity: error
48-
details: Deployment failed!
49-
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
47+
title: Deployment failed!
48+
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
5049
username: 'devserkan'
50+
colour: #d73a49
5151
tag_release:
5252
if: ${{ github.event_name == 'push' && !contains(join(github.event.commits.*.message), '#skip') }}
5353
needs: [simple_deployment_pipeline]

0 commit comments

Comments
 (0)