From 45edd0a46b776037b934ca0b98fdfedef40d65bd Mon Sep 17 00:00:00 2001 From: Crown0815 Date: Sat, 24 May 2025 19:52:15 +0200 Subject: [PATCH] ci: Add sleep to reduce iterations of waiting for forgejo to start --- .github/workflows/windows-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/windows-tests.yml b/.github/workflows/windows-tests.yml index 4f00b657..f3db295e 100644 --- a/.github/workflows/windows-tests.yml +++ b/.github/workflows/windows-tests.yml @@ -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 }})"