Skip to content

Commit

Permalink
deployment can return other 2xx responses as a success
Browse files Browse the repository at this point in the history
  • Loading branch information
uguraslan authored Nov 20, 2024
1 parent 04de568 commit f88960e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f88960e

Please sign in to comment.