-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
46 lines (45 loc) · 1.27 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
name: 'cURL AxiosJS updated'
description: 'Axios-based cURL action for REST APIs, running on Node.js 20+, with a fix for deprecated setOutput.'
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'
params:
description: 'Params object'
body:
description: 'Body object'
timeout:
description: 'timeout (millisec)'
default: 1000
basic-auth-token:
description: 'Basic authentication token, format => username:password as base64'
bearer-token:
description: 'Bearer Token'
proxy-url:
description: 'Proxy host, format => host:port'
proxy-auth-token:
description: 'Proxy authentication token, format => username:password as base64'
log-response:
description: 'Should log the response'
default: 'false'
retries:
description: 'retries number'
default: 1
custom-config:
description: custom config
outputs:
response:
description: 'The response object'
branding:
icon: 'download'
color: 'gray-dark'
runs:
using: 'node20'
main: 'dist/index.js'