From f88960e1338b593b9735d3c8083e1cf93396d40d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=9Fur=20Aslan?= <20225811+uguraslan@users.noreply.github.com> Date: Wed, 20 Nov 2024 10:39:19 +0100 Subject: [PATCH] deployment can return other 2xx responses as a success --- .github/workflows/deploy-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index b1ee630c..52790d67 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -19,7 +19,7 @@ jobs: --retry 2 \ --retry-delay 5 \ ${{ secrets.WEBSITE_DEPLOY_URL }}) - if [ "$response" -eq 200 ]; then + if [ "$response" -ge 200 ] && [ "$response" -lt 300 ]; then echo "Deployment triggered successfully" else echo "Failed to trigger deployment. Status code: $response"