From 20c4c5f5645742f531457d5b3819b365ef6b7f5a Mon Sep 17 00:00:00 2001 From: Vinicius Mayrink Date: Sun, 27 Oct 2024 12:05:25 -0300 Subject: [PATCH] chore: changes finish check --- deploy-to-koyeb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy-to-koyeb.sh b/deploy-to-koyeb.sh index 992fbb6..392b7fc 100755 --- a/deploy-to-koyeb.sh +++ b/deploy-to-koyeb.sh @@ -29,7 +29,7 @@ while (( $(date +%s) - start_time < $DEPLOY_CHECK_TIMEOUT_SECONDS )); do service_data=$(curl -s $KOYEB_BASE_URL/services/$KOYEB_SERVICEID -H "Authorization: Bearer $KOYEB_TOKEN") active_deployment=$(echo $service_data | jq '.service.active_deployment_id') latest_deployment=$(echo $service_data | jq '.service.latest_deployment_id') - if [[ "$active_deployment" != "$latest_deployment" ]]; then + if [[ "$active_deployment" == "$latest_deployment" ]]; then echo "Deploy succeeded" deploy_succeeded=1 break