Skip to content

Commit

Permalink
Change ping code
Browse files Browse the repository at this point in the history
  • Loading branch information
markbotterill committed Apr 11, 2024
1 parent 71e9e25 commit b37a643
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/redeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ jobs:
- name: Ping the website
run: |
response=$(curl -o /dev/null -s -w "%{http_code}\n" https://hubgpt-prod.idinsight.io)
if [ "$response" -eq 200 ]; then
echo "Site is up and returned HTTP status 200"
if [ "$response" -eq 307 ]; then
echo "Site is up and returned HTTP status 307"
else
echo "Site might be down or is not returning HTTP status 200, returned HTTP status $response"
echo "Site might be down or is not returning expected codes. Code returned: $response"
exit 1
fi

0 comments on commit b37a643

Please sign in to comment.