|
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 |
2 | 12 | # You may pin to the exact commit or the version. |
3 | 13 | # uses: sarisia/actions-status-discord@11a0bfe3b50977e38aa2bd4a4ebd296415e83c19 |
4 | | - |
5 | | - with: |
| 14 | + |
| 15 | + with: |
6 | 16 | # Discord webhook endpoint. If not set, env.DISCORD_WEBHOOK will be used. |
7 | | - webhook: {{ secrets.DISCORD_WEBHOOK }} |
| 17 | + webhook: ${{ secrets.DISCORD_WEBHOOK }} |
8 | 18 | # 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 }} |
10 | 20 | # Deprecated. Job name included in message title. Same as title input. |
11 | | - job: # optional |
| 21 | + job: # optional |
12 | 22 | # Content. Shown as an message outside of the embed. See [Mention to user/role](#mention-to-user-role) |
13 | | - content: # optional |
| 23 | + content: # optional |
14 | 24 | # String included in embed title. Overrides job input. |
15 | | - title: # optional, default is ${{ github.workflow }} |
| 25 | + title: # optional, default is ${{ github.workflow }} |
16 | 26 | # Description included in message |
17 | | - description: # optional |
| 27 | + description: # optional |
18 | 28 | # Image attached to the message |
19 | | - image: # optional |
| 29 | + image: # optional |
20 | 30 | # Overrides Discord embed color |
21 | | - color: # optional |
| 31 | + color: # optional |
22 | 32 | # URL to jump when the title is clicked |
23 | | - url: # optional |
| 33 | + url: # optional |
24 | 34 | # Overrides Discord webhook username |
25 | | - username: # optional |
| 35 | + username: # optional |
26 | 36 | # Overrides Discord webhook avatar url |
27 | | - avatar_url: # optional |
| 37 | + avatar_url: # optional |
28 | 38 | # This action won't make workflow failed by default. |
29 | | - nofail: # optional, default is true |
| 39 | + nofail: # optional, default is true |
30 | 40 | # Suppress GitHub context fields |
31 | | - nocontext: # optional, default is false |
| 41 | + nocontext: # optional, default is false |
32 | 42 | # Avoid appending job status to title |
33 | | - noprefix: # optional, default is false |
| 43 | + noprefix: # optional, default is false |
34 | 44 | # Suppress detailed embed fields |
35 | | - nodetail: # optional, default is false |
| 45 | + nodetail: # optional, default is false |
36 | 46 | # Avoid appending timestamp |
37 | | - notimestamp: # optional, default is false |
| 47 | + notimestamp: # optional, default is false |
38 | 48 | # 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 |
40 | 50 |
|
0 commit comments