From 01d82360f35a41e8f8fc1386ebd0addf65f71133 Mon Sep 17 00:00:00 2001 From: Benedict Date: Fri, 8 Mar 2024 14:43:45 +0800 Subject: [PATCH] [MOL-14987][BC] Update gitlab action --- .github/workflows/trigger-gitlab-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/trigger-gitlab-pipeline.yml b/.github/workflows/trigger-gitlab-pipeline.yml index 8807cddb..e8c29cac 100644 --- a/.github/workflows/trigger-gitlab-pipeline.yml +++ b/.github/workflows/trigger-gitlab-pipeline.yml @@ -85,7 +85,7 @@ jobs: | jq -r '[ .[] | select( .name | contains("'"$DOWNSTREAM_JOB_NAME"'")) ]' | jq -r '.[].status') echo "($DOWNSTREAM_JOB_NAME) Job status: $job_status" - sleep $(($CHECK_INTERVAL_MINUTES*60)) + [[ $job_status == "running" ]] && sleep $(($CHECK_INTERVAL_MINUTES*60)) done [[ $job_status == "canceled" ]] && echo "GitLab job was cancelled"