forked from adamkdean/simple-slack-notify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
49 lines (49 loc) · 1.33 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
name: 'Simple Slack Notify'
description: "Slack notification action that just works"
branding:
icon: 'message-circle'
color: 'purple'
runs:
using: 'node20'
main: 'dist/index.js'
inputs:
channel:
description: The channel you want to send to, such as '#general'
default: ''
required: false
disable_eval:
description: Disable JS evaluation of strings
default: ''
required: false
username:
description: Used to override the default username
default: ''
required: false
color:
description: The color you want to use, can be good, danger, warning or a hex code
default: ''
required: false
status:
description: Pass the job status through and omit color for status based color
default: ''
required: false
text:
description: The message that you want to send regardless of status
default: ''
required: false
success_text:
description: The message to send if status is success
default: ''
required: false
failure_text:
description: The message to send if status is failure
default: ''
required: false
cancelled_text:
description: The message to send if status is cancelled
default: ''
required: false
fields:
description: 'JSON string containing an array of fields to attach to the notification'
default: '[]'
required: false