diff --git a/.github/workflows/offline-installation.yml b/.github/workflows/offline-installation.yml index ce95124..fb952c8 100644 --- a/.github/workflows/offline-installation.yml +++ b/.github/workflows/offline-installation.yml @@ -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: |