forked from johnlokerse/website-healthcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
32 lines (32 loc) · 1.01 KB
/
action.yml
File metadata and controls
32 lines (32 loc) · 1.01 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
name: "Website Healthcheck"
description: "Website status checking and text scanning"
branding:
icon: activity
color: white
inputs:
web-url:
description: "Specify the URL to scan"
required: true
scan-for-text:
description: "Specify the string that has to be scanned"
required: false
default: ""
json-checks:
description: "Newline-separated key=value pairs to validate against JSON response (e.g. status=ok)"
required: false
default: ""
max-attempts:
description: "Number of attempts"
required: false
default: 3
backoff-multiplier:
description: "Number of seconds to increase backoff between attempts"
required: false
default: 2
runs:
using: "composite"
steps:
- run: chmod +x ${{ github.action_path }}/scan-website.sh
shell: bash
- run: ${{ github.action_path }}/scan-website.sh "${{ inputs.web-url }}" "${{ inputs.scan-for-text }}" "${{ inputs.max-attempts }}" "${{ inputs.backoff-multiplier }}" "${{ inputs.json-checks }}"
shell: bash