From 6274bd11b6d375daf7ea47ed8a5057767c679710 Mon Sep 17 00:00:00 2001 From: Kirill Sizov Date: Mon, 3 Oct 2022 14:56:52 +0300 Subject: [PATCH] workflows: update value of status for `waiting server` step (#5026) --- .github/workflows/full.yml | 2 +- .github/workflows/main.yml | 2 +- .github/workflows/schedule.yml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/full.yml b/.github/workflows/full.yml index 1ccbd02c..96651d74 100644 --- a/.github/workflows/full.yml +++ b/.github/workflows/full.yml @@ -314,7 +314,7 @@ jobs: run: | max_tries=60 status_code=$(curl -s -o /tmp/server_response -w "%{http_code}" ${API_ABOUT_PAGE}) - while [[ $status_code != "401" && max_tries -gt 0 ]] + while [[ $status_code != "200" && max_tries -gt 0 ]] do echo Number of attempts left: $max_tries echo Status code of response: $status_code diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b571e61d..e4547d0f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -275,7 +275,7 @@ jobs: run: | max_tries=60 status_code=$(curl -s -o /tmp/server_response -w "%{http_code}" ${API_ABOUT_PAGE}) - while [[ $status_code != "401" && max_tries -gt 0 ]] + while [[ $status_code != "200" && max_tries -gt 0 ]] do echo Number of attempts left: $max_tries echo Status code of response: $status_code diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml index 0972b378..3c78d9af 100644 --- a/.github/workflows/schedule.yml +++ b/.github/workflows/schedule.yml @@ -331,7 +331,7 @@ jobs: run: | max_tries=60 status_code=$(curl -s -o /tmp/server_response -w "%{http_code}" ${API_ABOUT_PAGE}) - while [[ $status_code != "401" && max_tries -gt 0 ]] + while [[ $status_code != "200" && max_tries -gt 0 ]] do echo Number of attempts left: $max_tries echo Status code of response: $status_code @@ -341,14 +341,14 @@ jobs: (( max_tries-- )) done - if [[ $status_code != "401" ]]; then + if [[ $status_code != "200" ]]; then echo Response from server is incorrect, output: cat /tmp/server_response fi echo ::set-output name=status_code::${status_code} - name: Fail on bad response from server - if: steps.wait-server.outputs.status_code != '401' + if: steps.wait-server.outputs.status_code != '200' uses: actions/github-script@v3 with: script: |