forked from nev7n/wait_for_response
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
35 lines (35 loc) · 891 Bytes
/
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
# action.yml
name: 'Wait For Response'
author: 'Justin Knight'
branding:
icon: 'clock'
color: 'blue'
description: 'Wait for response code from a URL with timeout'
inputs:
url:
description: 'URL to poll'
required: false
default: 'http://localhost/'
responseCode:
description: 'Response code to wait for'
required: false
default: '200'
timeout:
description: 'Timeout before giving up in ms'
required: false
default: '30000'
interval:
description: 'Interval between polling in ms'
required: false
default: 200
outputs:
result:
description: '0 if response code returned within timeout, otherwise 1'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.url }}
- ${{ inputs.responseCode }}
- ${{ inputs.timeout }}
- ${{ inputs.interval }}