Align GitHub Actions config more closely with Spring Boot

This commit is contained in:
Andy Wilkinson
2024-10-21 11:48:25 +01:00
parent d34584bbde
commit ef12effe9b
12 changed files with 174 additions and 126 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: '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"