diff --git a/.github/ciChecksScripts/wakeUpRunner.sh b/.github/ciChecksScripts/wakeUpRunner.sh index 4199da637a..773f96418b 100755 --- a/.github/ciChecksScripts/wakeUpRunner.sh +++ b/.github/ciChecksScripts/wakeUpRunner.sh @@ -5,9 +5,9 @@ runner_vpc_id="vpc-08ac0db4d8a7cce9e" # Get runner status runner=$(aws ec2 describe-instances --profile $profile --filters Name=tag:Name,Values=[ci-checks-runner] Name=network-interface.vpc-id,Values=[$runner_vpc_id] --query "Reservations[*].Instances[*][InstanceId]" --output text | xargs) -runner_status=$(aws ec2 describe-instances --profile $profile --instance-ids $runner --query "Reservations[*].Instances[*].State.[Name]" --output text) while true; do + runner_status=$(aws ec2 describe-instances --profile $profile --instance-ids $runner --query "Reservations[*].Instances[*].State.[Name]" --output text) if [ $runner_status = "stopped" ]; then aws ec2 start-instances --profile $profile --instance-ids $runner exit 0