forked from slackapi/slack-github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
30 lines (30 loc) · 1.83 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
name: 'slack-send'
description: 'Publish a message in a channel or send a JSON payload to the Slack Workflow Builder'
inputs:
channel-id: # channel id to post message when using bot token
description: 'Slack channel ID where message will be posted. Needed if using bot token'
required: false
slack-message: # message to post when using bot token
description: 'Message to post into Slack. Needed if using bot token'
required: false
payload: # JSON payload to send to Slack via webhook
description: 'JSON payload to send to Slack if webhook route. If not supplied, json from GitHub event will be sent instead'
required: false
payload-file-path: # path to JSON payload to send to Slack via webhook
description: 'path to JSON payload to send to Slack if webhook route. If not supplied, json from GitHub event will be sent instead. If payload is provided, it will take preference over this field'
required: false
update-ts: # The timestamp of a previous message posted to update it instead of posting a new message
description: 'The timestamp of a previous message posted. It will update the existing message instead of posting a new message'
required: false
outputs:
time: # id of output
description: 'The time'
thread_ts: # threaded timestamp on the message that was posted when using bot token
description: 'The timestamp on the message that was posted into Slack when using bot token'
ts: # timestamp of message posted
description: 'The timestamp on the message that was posted into Slack when using bot token'
channel_id: # Id of the channel. If channel name was used as input we can get ID from output for later use when updating message or posting to thread.
description: 'The channel id of the message that was posted into Slack when using bot token'
runs:
using: 'node16'
main: 'dist/index.js'