-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
44 lines (42 loc) · 1.23 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
name: "Post or update slack message"
description: "Send new or update a slack message from a bot"
branding:
icon: "message-square"
color: "blue"
inputs:
token:
description: "The slack bot token"
required: true
channel:
description: "Send the message to this channel"
required: true
ts:
description: "If passed, update matching message instead of posting a new one"
required: false
threadTs:
description: "If passed, add message to thread to the message referenced"
required: false
text:
description: "The message's base text"
required: false
blocks:
description: "Optional array of blocks (JSON.stringify'ed)"
required: false
attachments:
description: "Optional array of attachements (JSON.stringify'ed)"
required: false
appendText:
description: "Append given text to original message (update only)"
required: false
appendBlocks:
description: "Append given blocks to original message (update only)"
required: false
appendAttachments:
description: "Append given attachments to original message (update only)"
required: false
outputs:
ts:
description: "Updated or created message for later reference"
runs:
using: "node12"
main: "dist/index.js"