You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
520 B
20 lines
520 B
name: Await HTTP Resource |
|
description: Waits for an HTTP resource to be available (a HEAD request succeeds) |
|
inputs: |
|
url: |
|
description: 'The URL of the resource to await' |
|
required: true |
|
runs: |
|
using: composite |
|
steps: |
|
- name: Await HTTP resource |
|
shell: bash |
|
run: | |
|
url=${{ inputs.url }} |
|
echo "Waiting for $url" |
|
until curl --fail --head --silent ${{ inputs.url }} > /dev/null |
|
do |
|
echo "." |
|
sleep 60 |
|
done |
|
echo "$url is available"
|
|
|