Skip to content

Commit c73743f

Browse files
Update Discord notification workflow configuration
1 parent 8807cf7 commit c73743f

File tree

1 file changed

+30
-20
lines changed

1 file changed

+30
-20
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,50 @@
1-
- name: Actions Status Discord
1+
name: Discord Push Notifications
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
notify:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Actions Status Discord
212
# You may pin to the exact commit or the version.
313
# uses: sarisia/actions-status-discord@11a0bfe3b50977e38aa2bd4a4ebd296415e83c19
4-
uses: sarisia/[email protected]
5-
with:
14+
uses: sarisia/[email protected]
15+
with:
616
# Discord webhook endpoint. If not set, env.DISCORD_WEBHOOK will be used.
7-
webhook: {{ secrets.DISCORD_WEBHOOK }}
17+
webhook: ${{ secrets.DISCORD_WEBHOOK }}
818
# Job status. Should be bound to job.status. Default to success.
9-
status: # optional, default is ${{ job.status }}
19+
status: # optional, default is ${{ job.status }}
1020
# Deprecated. Job name included in message title. Same as title input.
11-
job: # optional
21+
job: # optional
1222
# Content. Shown as an message outside of the embed. See [Mention to user/role](#mention-to-user-role)
13-
content: # optional
23+
content: # optional
1424
# String included in embed title. Overrides job input.
15-
title: # optional, default is ${{ github.workflow }}
25+
title: # optional, default is ${{ github.workflow }}
1626
# Description included in message
17-
description: # optional
27+
description: # optional
1828
# Image attached to the message
19-
image: # optional
29+
image: # optional
2030
# Overrides Discord embed color
21-
color: # optional
31+
color: # optional
2232
# URL to jump when the title is clicked
23-
url: # optional
33+
url: # optional
2434
# Overrides Discord webhook username
25-
username: # optional
35+
username: # optional
2636
# Overrides Discord webhook avatar url
27-
avatar_url: # optional
37+
avatar_url: # optional
2838
# This action won't make workflow failed by default.
29-
nofail: # optional, default is true
39+
nofail: # optional, default is true
3040
# Suppress GitHub context fields
31-
nocontext: # optional, default is false
41+
nocontext: # optional, default is false
3242
# Avoid appending job status to title
33-
noprefix: # optional, default is false
43+
noprefix: # optional, default is false
3444
# Suppress detailed embed fields
35-
nodetail: # optional, default is false
45+
nodetail: # optional, default is false
3646
# Avoid appending timestamp
37-
notimestamp: # optional, default is false
47+
notimestamp: # optional, default is false
3848
# Suppress error which raised when webhook is not set
39-
ack_no_webhook: # optional, default is false
49+
ack_no_webhook: # optional, default is false
4050

0 commit comments

Comments
 (0)