forked from mydea/action-wait-for-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
39 lines (38 loc) · 1.16 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
name: "Wait for API Action"
description: "A Github Action to wait for a specific API response to proceed."
author: "Francesco Novy"
branding:
icon: "clock"
color: "blue"
inputs:
method:
description: "Which HTTP method to use"
required: true
default: "GET"
url:
description: "The URL to talk to"
required: true
headers:
description: "Optional headers, as a JSON string"
required: false
expected-status:
description: "Which HTTP status to expect"
required: true
default: "200"
expected-response-field:
description: 'If set, this field must exist in the API response. Use dot notation for nested fields (e.g. "data.user.name")'
required: false
expected-response-field-value:
description: 'If set, the field from "expected-response-field" must be this value. Nota that any value is converted to a string.'
required: false
timeout:
description: "The max. time in seconds to wait until the action should fail."
required: true
default: "300"
interval:
description: "The time in seconds to wait between trying the API."
required: true
default: "10"
runs:
using: "node20"
main: "dist/index.js"