Skip to content

Commit

Permalink
Windows Nightly CI
Browse files Browse the repository at this point in the history
Signed-off-by: Shveta Sachdeva <[email protected]>
  • Loading branch information
sshveta committed Jan 22, 2025
1 parent 7215d0a commit a97635c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/provision-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ on:
value: ${{ jobs.provision-ec2.outputs.instance_id }}
ec2-host:
description: "Public IP or DNS of the EC2 instance."
value: ${{ jobs.provision-ec2.outputs.EC2_HOST }}
value: ${{ jobs.provision-ec2.outputs.ec2-host }}

jobs:
provision-ec2:
Expand Down Expand Up @@ -88,11 +88,13 @@ jobs:
EC2_INSTANCE_ID="${{ steps.ec2.outputs.ec2-instance-id }}"
EC2_INSTANCE_ID=$(echo $EC2_INSTANCE_ID | sed 's/^\[\(.*\)\]$/\1/')
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"
# Set the EC2 Host as an environment variable to be available to subsequent jobs
echo "ec2-host=$EC2_HOST" >> $GITHUB_ENV
echo "::set-output name=ec2-host::$EC2_HOST"
- name: Output EC2 Instance ID
run: |
echo "EC2 Instance ID: ${{ steps.ec2.outputs.ec2-instance-id }}"
echo "EC2 Host (Public IP/DNS): ${{ steps.get-ec2-host.outputs.EC2_HOST }}"
echo "EC2 Host (Public IP/DNS): ${{ env.ec2-host }}"
echo "Label : ${{ steps.ec2.outputs.label }}"

0 comments on commit a97635c

Please sign in to comment.