-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
44 lines (41 loc) · 1.27 KB
/
action.yml
File metadata and controls
44 lines (41 loc) · 1.27 KB
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
name: 'APIVerve DevOps Utilities'
description: 'Validate JSON schemas, test regex patterns, and decode JWTs'
author: 'APIVerve'
branding:
icon: 'terminal'
color: 'gray-dark'
inputs:
api_key:
description: 'Your APIVerve API key. Can also be set via APIVERVE_API_KEY env var.'
required: false
api:
description: 'The API to use. Options: jsonschemavalidator, jsonschemagenerator, regextester, jwtdecoder, cronparser'
required: false
default: 'jsonschemavalidator'
params:
description: 'JSON parameters to pass to the API'
required: false
default: '{}'
output_file:
description: 'Path to save binary output (for APIs that return files like images, PDFs)'
required: false
format:
description: 'Response format: json, yaml, or xml'
required: false
default: 'json'
fail_on_error:
description: 'Whether to fail the workflow if the API returns an error'
required: false
default: 'true'
outputs:
result:
description: 'The full API response as JSON'
data:
description: 'The data field from the API response as JSON'
status:
description: 'The status of the API call (ok or error)'
file:
description: 'Path to the downloaded file (if output_file was specified)'
runs:
using: 'node20'
main: 'dist/index.js'