forked from fjogeleit/http-request-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
63 lines (63 loc) · 1.84 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
54
55
56
57
58
59
60
61
62
63
name: 'HTTP Request Action'
description: 'Create any HTTP Request'
inputs:
url:
description: 'Request URL'
required: true
method:
description: 'Request Method'
required: false
default: 'POST'
contentType:
description: 'Content Type'
required: false
data:
description: 'Request Body as JSON String'
required: false
default: '{}'
files:
description: 'Map of absolute file paths as JSON String'
required: false
default: '{}'
file:
description: 'A single absolute file path'
required: false
username:
description: 'Auth Username'
required: false
password:
description: 'Auth Password'
required: false
timeout:
description: 'Request Timeout in Sec'
required: false
default: '5000'
bearerToken:
description: 'Bearer Authentication Token'
required: false
customHeaders:
description: 'Custom HTTP Headers'
required: false
preventFailureOnNoResponse:
description: 'Prevent this Action to fail if the request respond without an response'
required: false
ignoreStatusCodes:
description: 'Prevent this Action to fail if the request respond with one of the configured StatusCodes'
required: false
escapeData:
description: 'Escape newlines in data string content'
required: false
httpsCA:
description: 'Certificate authority as string in PEM format'
required: false
responseFile:
description: 'Persist the response data to the specified file path'
required: false
outputs:
response:
description: 'HTTP Response Content'
headers:
description: 'HTTP Response Headers'
runs:
using: 'node16'
main: 'dist/index.js'