-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
72 lines (67 loc) · 2.27 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
name: Send Slack notification
description: Send a Slack message with the workflow data.
runs:
using: node12
main: dist/index.js
inputs:
webhook:
description: URL of Slack incoming webhook.
required: true
status:
description: |
The status to be used for the notification. A status of a step can be used.
Must be on of:
- `success`
- `failure`
- `cancelled`
required: true
text:
description: |
The text of the notification. You can use Slack message markup.
By default this is set based on the provided `status`.
required: false
default: ''
color:
description: |
The color this message will be highlighted with.
By default this is set based on the provided `status`.
required: false
default: ''
username:
description: |
Change the displayed name of the app for this message.
This requires your app to have
[`chat:write.customize`](https://api.slack.com/scopes/chat:write.customize)
scope enabled. Otherwise this field will not have any effect. See
(Slack API docs)[https://api.slack.com/messaging/sending#impersonation] for
more details.
required: false
default: ''
icon-url:
description: |
Change the displayed icon of the app.
This requires your app to have
[`chat:write.customize`](https://api.slack.com/scopes/chat:write.customize)
scope enabled. Otherwise this field will not have any effect. See
(Slack API docs)[https://api.slack.com/messaging/sending#impersonation] for
more details.
required: false
default: ''
icon-emoji:
description: |
Display an emoji as the app icon.
This requires your app to have
[`chat:write.customize`](https://api.slack.com/scopes/chat:write.customize)
scope enabled. Otherwise this field will not have any effect. See
(Slack API docs)[https://api.slack.com/messaging/sending#impersonation] for
more details.
required: false
default: ''
custom-fields:
description: |
A JSON array of additional fields to be displayed along with the default
ones. See
(Field objects)[https://api.slack.com/reference/messaging/attachments#field_objects]
documentation for the details.
required: false
default: '[]'