mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-07-02 16:38:35 +00:00
ci: Add sleep to reduce iterations of waiting for forgejo to start
This commit is contained in:
parent
f1b829d5bb
commit
45edd0a46b
1 changed files with 1 additions and 0 deletions
1
.github/workflows/windows-tests.yml
vendored
1
.github/workflows/windows-tests.yml
vendored
|
@ -71,6 +71,7 @@ jobs:
|
||||||
-e FORGEJO__server__ROOT_URL=${{ env.FORGEJO_ROOT_URL }} \
|
-e FORGEJO__server__ROOT_URL=${{ env.FORGEJO_ROOT_URL }} \
|
||||||
codeberg.org/forgejo/forgejo:11.0-rootless
|
codeberg.org/forgejo/forgejo:11.0-rootless
|
||||||
|
|
||||||
|
sleep 10 # matches the sleep 10 in the bootstrap of the Forgejo instance
|
||||||
i=0
|
i=0
|
||||||
until curl -s ${{ env.FORGEJO_ROOT_URL }}/api/v1/version > /dev/null || (( i == ${{ env.MAX_WAIT_ITERATIONS }} )); do
|
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 }})"
|
echo "Waiting for Forgejo to be ready... ($(( ++i ))/${{ env.MAX_WAIT_ITERATIONS }})"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue