Skip to content

Commit

Permalink
Fix instance_id variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
fcaffieri committed Dec 23, 2024
1 parent 9ab9821 commit d138368
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/offline-installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,10 @@ jobs:
-e "install_pip_deps=$INSTALL_PIP_DEPS" \
"$VERBOSITY"
- name: Get instance-id
- name: Get instance-id and modify security group
run: |
echo "INSTANCE_ID=$(aws ec2 describe-instances --query 'Reservations[*].Instances[*].InstanceId' --filters "Name=tag:Name,Values=gha_${{ github.run_id }}_assistant_test" --output text)" >> $GITHUB_ENV
- name: Change security group
run: |
aws ec2 modify-instance-attribute --instance-id {{ env.INSTANCE_ID }} --groups sg-03c53339089a65829
echo "INSTANCE_ID=$(aws ec2 describe-instances --query 'Reservations[*].Instances[*].InstanceId' --filters "Name=tag:Name,Values=gha_${{ github.run_id }}_assistant_test" --output text)"
aws ec2 modify-instance-attribute --instance-id $INSTANCE_ID --groups sg-03c53339089a65829
- name: Execute offline installation playbook
run: |
Expand Down

0 comments on commit d138368

Please sign in to comment.