1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-06-27 16:35:58 +00:00

ci: Add sleep to reduce iterations of waiting for forgejo to start

This commit is contained in:
Crown0815 2025-05-24 19:52:15 +02:00 committed by Crown0815
parent f1b829d5bb
commit 45edd0a46b

View file

@ -71,6 +71,7 @@ jobs:
-e FORGEJO__server__ROOT_URL=${{ env.FORGEJO_ROOT_URL }} \
codeberg.org/forgejo/forgejo:11.0-rootless
sleep 10 # matches the sleep 10 in the bootstrap of the Forgejo instance
i=0
until curl -s ${{ env.FORGEJO_ROOT_URL }}/api/v1/version > /dev/null || (( i == ${{ env.MAX_WAIT_ITERATIONS }} )); do
echo "Waiting for Forgejo to be ready... ($(( ++i ))/${{ env.MAX_WAIT_ITERATIONS }})"