forked from abinoda/slack-action
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
25 lines (25 loc) · 835 Bytes
/
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
name: "Notify Slack channel with a text message"
author: rainui28
description: "Post (fancy) message in a Slack channel"
branding:
color: purple
icon: message-circle
inputs:
channel-id:
description: "Channel ID where the text will be posted"
required: true
value:
description: |
Mechanism delivery expected value:
- 'text' -> [Required] message to send in Slack channel.
- 'blocks' -> [Required] either raw json payload that complies Slack API blocks
format.
- 'templates' -> [Required] template filename host on github.com/evryfs/notify-slack-action/templates.
required: true
mechanism:
description: "Mechanism delivery of the message. Either 'text', 'blocks' or 'templates'"
required: false
default: text
runs:
using: 'node20'
main: 'index.js'