diff --git a/.github/workflows/offline-installation.yml b/.github/workflows/offline-installation.yml index f2d9ebb..c4ba107 100644 --- a/.github/workflows/offline-installation.yml +++ b/.github/workflows/offline-installation.yml @@ -182,8 +182,7 @@ jobs: - name: Get instance-id and modify security group run: | - 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 + aws ec2 modify-instance-attribute --instance-id $(aws ec2 describe-instances --query 'Reservations[*].Instances[*].InstanceId' --filters "Name=tag:Name,Values=gha_${{ github.run_id }}_assistant_test" --output text) --groups sg-03c53339089a65829 - name: Execute offline installation playbook run: |