diff --git a/.github/workflows/provision-runner.yml b/.github/workflows/provision-runner.yml index f17844f0..86c5fc4c 100644 --- a/.github/workflows/provision-runner.yml +++ b/.github/workflows/provision-runner.yml @@ -85,7 +85,8 @@ jobs: - name: Get EC2 Host (Public IP/DNS) id: get-ec2-host run: | - EC2_HOST=$(aws ec2 describe-instances --instance-ids ${{ steps.ec2.outputs.ec2-instance-id }} --query "Reservations[0].Instances[0].PublicIpAddress" --output text) + EC2_INSTANCE_ID="${{ steps.ec2.outputs.ec2-instance-id }}" + EC2_HOST=$(aws ec2 describe-instances --instance-ids $EC2_INSTANCE_ID --query "Reservations[0].Instances[0].PublicIpAddress" --output text) echo "EC2 Host: $EC2_HOST" echo "ec2-host=$EC2_HOST" >> $GITHUB_ENV