* added thread-ts as an output. Fixes #73 * added example of thread_ts being used in a followup step
24 lines
1.2 KiB
YAML
24 lines
1.2 KiB
YAML
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
|
|
outputs:
|
|
time: # id of output
|
|
description: 'The time'
|
|
thread_ts: # 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'
|
|
runs:
|
|
using: 'node12'
|
|
main: 'dist/index.js'
|