forked from Jtalk/url-health-check-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
57 lines (57 loc) · 1.66 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
name: 'URL Health Check'
description: 'Ping given URL (with curl) for a post-deploy check. With redirect and retrying capabilities'
author: 'Roman Nazarenko <me@jtalk.me>, Liza Lukicheva <me@bananamilkshake.me>'
inputs:
url:
description: Target URL(s), split by |
required: true
max-attempts:
description: Number of unsuccessful attempts to call URL before giving up
required: false
default: '1'
retry-delay:
description: Time between attempts (e.g. 3s, 1m)
required: false
default: '3s'
follow-redirect:
description: Follow redirected location in case request resulted in 3XX status code
required: false
default: 'false'
exponential-backoff:
description: Retry with exponential backoff (true) or at regular intervals (false).
required: false
default: 'false'
retry-all:
description: |
Retry all errors, including 4xx (see man curl on --retry-all-errors).
This might upgrade curl to the version supporting this flag.
required: false
default: 'false'
cookie:
description: |
String representation of cookie attached to health check request.
Format: `Name=Value`
required: false
default: ''
basic-auth:
description: |
Basic auth login password pair.
Format: `login:password`
required: false
default: ''
contains:
description: |
String that must be present in the body at the target URL.
required: false
default: ''
contains-not:
description: |
String that must not be present in the body at the target URL.
required: false
default: ''
branding:
icon: check
color: purple
runs:
using: 'node20'
main: 'dist/index.js'