forked from actionsflow/axios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
53 lines (52 loc) · 1.46 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
45
46
47
48
49
50
51
52
53
name: 'Axios Action By Tommy'
description: 'Make a request based on axios'
inputs:
url:
description: 'The target url'
method:
description: 'The request method, basically one of GET, POST, PUT, PATCH'
default: 'GET'
accept:
description: 'List of status codes to be accepted, else it is considerred to be failed'
default: 200,201,204
headers:
description: 'Headers object'
content-type:
description: "Content-Type, if data is json string, th default value will be application/json"
params:
description: 'Params object'
data:
description: 'body string, can be json string'
body:
description: 'alisa of data, body string, can be json string'
timeout:
description: 'timeout (millisec)'
default: 0
basic-auth:
description: 'Basic authentication, format => username:password'
bearer-token:
description: 'Bearer Token'
proxy-url:
description: 'Proxy host, format => host:port'
proxy-auth:
description: 'Proxy authentication, format => username:password'
is_debug:
description: 'show debug message of response'
default: false
retry:
default: 1/1
custom-config:
description: custom config
outputs:
data:
description: 'The response data, type: string'
headers:
description: 'The response headers, type: json string'
status:
description: "The response status code"
branding:
icon: 'download'
color: 'gray-dark'
runs:
using: 'node12'
main: 'dist/index.js'