diff --git a/.github/workflows/full.yml b/.github/workflows/full.yml index 1ccbd02c0fb..96651d74a00 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 b571e61d331..e4547d0fd58 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 0972b378fbd..3c78d9af733 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: |