1
0
Fork 0
mirror of https://github.com/fjogeleit/http-request-action.git synced 2024-12-23 04:37:28 +00:00
http-request-action/action.yml

64 lines
1.8 KiB
YAML
Raw Normal View History

2020-02-24 09:23:15 +00:00
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: '{}'
2022-02-10 03:14:07 +00:00
file:
description: 'A single absolute file path'
required: false
2020-02-24 09:23:15 +00:00
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
2020-08-04 15:09:29 +00:00
customHeaders:
description: 'Custom HTTP Headers'
required: false
preventFailureOnNoResponse:
description: 'Prevent this Action to fail if the request respond without an response'
2020-07-21 07:26:48 +00:00
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
2020-02-24 09:23:15 +00:00
outputs:
response:
description: 'HTTP Response Content'
headers:
description: 'HTTP Response Headers'
2020-02-24 09:23:15 +00:00
runs:
using: 'node16'
2020-02-24 09:23:15 +00:00
main: 'dist/index.js'