forked from MeilCli/slack-upload-file
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
39 lines (39 loc) · 1.29 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
name: 'slack upload file'
description: 'upload file to slack'
author: 'MeilCli'
branding:
icon: arrow-up
color: blue
inputs:
slack_token:
description: 'Slack token, must has files:write permission'
required: true
slack_api_url:
description: 'Custom slack api url'
channels:
description: 'Comma-separated list of channel names or IDs where the file will be shared.'
content:
description: 'File contents via a POST variable. If omitting this parameter, you must provide a file.'
file_path:
description: 'File contents via multipart/form-data. If omitting this parameter, you must submit content.'
file_path_follow_symbolic_links:
description: 'Indicates whether to follow symbolic links'
default: true
file_name:
description: 'Filename of file.'
file_type:
description: 'A file type identifier.'
initial_comment:
description: 'The message text introducing the file in specified channels.'
thread_ts:
description: 'Provide another message`s ts value to upload this file as a reply. Never use a reply`s ts value; use its parent instead.'
title:
description: 'Title of file.'
retries:
description: 'max API retry count. default retries is 3'
outputs:
response:
description: 'the api response'
runs:
using: 'node16'
main: 'dist/index.js'