Skip to content

Commit

Permalink
using new github_output
Browse files Browse the repository at this point in the history
  • Loading branch information
lola831 committed Oct 8, 2024
1 parent 5b8e3bd commit 0e0c556
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/run-simulators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
# Create a new volume from the latest snapshot
volume_id=$(aws ec2 create-volume --snapshot-id $LATEST_SNAPSHOT_ID --availability-zone $(aws ec2 describe-instances --instance-ids $INSTANCE_ID --query "Reservations[0].Instances[0].Placement.AvailabilityZone" --output text) --volume-type gp2 --query "VolumeId" --output text)
echo "Created volume with ID: $volume_id"
echo "::set-output name=volume_id::$volume_id"
# Set volume_id as output
echo "volume_id=$volume_id" >> $GITHUB_OUTPUT
# Wait until the volume is available
aws ec2 wait volume-available --volume-ids $volume_id
Expand Down

0 comments on commit 0e0c556

Please sign in to comment.