Sync GHA setup

This commit is contained in:
Stéphane Nicoll
2024-08-09 15:37:43 +02:00
parent 7a250aa8ea
commit 1e6767ac03
7 changed files with 36 additions and 23 deletions

View File

@@ -0,0 +1,20 @@
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"