generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 133
/
action.yml
74 lines (74 loc) · 2.2 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: action-slack
description: You can notify slack of GitHub Actions.
author: 8398a7
inputs:
status:
description: Specify success or failure or cancelled or custom.
required: true
fields:
description: |
You can choose the items you want to add to the fields at the time of notification.
If you have more than one, please enter it in csv format.
e.g. commit,repo
default: ""
required: false
custom_payload:
description: |
json payload
refs https://github.com/slackapi/node-slack-sdk/blob/v5.0.0/packages/webhook/src/IncomingWebhook.ts#L91-L106)
required: false
mention:
description: |
Specify channel or here or `user_id`.
refs: https://api.slack.com/reference/surfaces/formatting#mentioning-users
default: ""
required: false
if_mention:
description: |
Specify success or failure or cancelled or custom or always.
Multiple statuses can be specified in csv format.
e.g. success,failure
default: ""
required: false
author_name:
description: User name for slack notification.
default: 8398a7@action-slack
required: false
text:
description: You can overwrite text.
default: ""
required: false
username:
description: override the legacy integration's default name.
default: ""
required: false
icon_emoji:
description: an emoji code string to use in place of the default icon.
default: ""
required: false
icon_url:
description: an icon image URL string to use in place of the default icon.
default: ""
required: false
channel:
description: override the legacy integration's default channel. This should be an ID, such as C8UJ12P4P.
default: ""
required: false
job_name:
description: Use this if you want to overwrite the job name.
default: ""
required: false
github_token:
description: Use this if you wish to use a different GitHub token than the one provided by the workflow.
required: false
default: ${{ github.token }}
github_base_url:
description: Specify if you want to use GitHub Enterprise.
default: ""
required: false
runs:
using: node20
main: dist/index.js
branding:
icon: bell
color: blue