Reduce number of attempts for server health check

This commit is contained in:
Syed Ali Shahbaz
2023-09-28 21:40:34 +04:00
committed by GitHub
parent 89bd10bd84
commit 0048a58b26

View File

@@ -138,8 +138,8 @@ jobs:
echo ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login echo ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login
for i in {1..1200}; do for i in {1..60}; do
echo "Checking server health ($i/1200)..." echo "Checking server health ($i/60)..."
response=$(curl -o /dev/null -s -w "%{http_code}" ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login) response=$(curl -o /dev/null -s -w "%{http_code}" ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login)
echo "HTTP Status Code: $response" echo "HTTP Status Code: $response"
if [[ "$response" == "200" ]] || [[ "$response" == "307" ]]; then if [[ "$response" == "200" ]] || [[ "$response" == "307" ]]; then