forked from 8398a7/action-slack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
45 lines (45 loc) · 1.37 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
name: action-slack
description: You can notify slack of GitHub Actions.
author: 8398a7
inputs:
status:
description: Specify success or failure or cancelled or custom.
custom_payload:
description: |
json payload
refs https://github.com/slackapi/node-slack-sdk/blob/v5.0.0/packages/webhook/src/IncomingWebhook.ts#L91-L106)
mention:
description: |
Specify channel or here or `user_id`.
refs: https://api.slack.com/reference/surfaces/formatting#mentioning-users
default: ""
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: ""
author_name:
description: User name for slack notification.
default: 8398a7@action-slack
text:
description: You can overwrite text.
default: ""
username:
description: override the legacy integration's default name.
default: ""
icon_emoji:
description: an emoji code string to use in place of the default icon.
default: ""
icon_url:
description: an icon image URL string to use in place of the default icon.
default: ""
channel:
description: override the legacy integration's default channel. This should be an ID, such as C8UJ12P4P.
default: ""
runs:
using: node12
main: dist/index.js
branding:
icon: bell
color: blue