From 3046c1db80d80798a27184b88890033f994d9144 Mon Sep 17 00:00:00 2001 From: Gleb Date: Fri, 13 Dec 2024 16:36:44 -0800 Subject: [PATCH] adjust sleep scripts --- .github/workflows/bindings-ts.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bindings-ts.yml b/.github/workflows/bindings-ts.yml index 69ec960b4..c31163c00 100644 --- a/.github/workflows/bindings-ts.yml +++ b/.github/workflows/bindings-ts.yml @@ -78,8 +78,13 @@ jobs: shell: bash - run: | docker inspect -f {{.State.Health.Status}} quickstart - until [ "`docker inspect -f {{.State.Health.Status}} quickstart`"=="healthy" ]; do - sleep 0.1; + while true; do + status=`docker inspect -f {{.State.Health.Status}} quickstart` + echo "quickstart status: $status" + if [ "$status" == "healthy" ]; then + break + fi + sleep 1; done; if: runner.os != 'windows' shell: bash @@ -89,8 +94,13 @@ jobs: shell: wsl-run {0} - run: | docker inspect -f {{.State.Health.Status}} quickstart - until [ "`docker inspect -f {{.State.Health.Status}} quickstart`"=="healthy" ]; do - sleep 0.1; + while true; do + status=`docker inspect -f {{.State.Health.Status}} quickstart` + echo "quickstart status: $status" + if [ "$status" == "healthy" ]; then + break + fi + sleep 1; done; if: runner.os == 'windows' shell: wsl-run {0}