remove redundant code

This commit is contained in:
Anton Belodedenko 2024-07-02 11:28:50 -07:00 committed by GitHub
parent 96d5617889
commit 88e2ee6cf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1024,15 +1024,6 @@ jobs:
--instance-ids ${{ steps.balena-sut.outputs.instance_id }}
fi
with_backoff aws ec2 describe-instances \
--filters Name=tag:GITHUB_SHA,Values=${GITHUB_SHA}-tests \
Name=tag:GITHUB_RUN_ID,Values=${GITHUB_RUN_ID}-tests \
Name=tag:GITHUB_RUN_NUMBER,Values=${GITHUB_RUN_NUMBER}-tests \
Name=tag:GITHUB_RUN_NUMBER,Values=${GITHUB_RUN_NUMBER}-tests \
Name=tag:GITHUB_RUN_ATTEMPT,Values=${GITHUB_RUN_ATTEMPT}-tests \
| jq -r .Reservations[].Instances[].InstanceId \
| xargs --no-run-if-empty aws ec2 terminate-instances --instance-ids
env:
AWS_DEFAULT_REGION: ${{ vars.AWS_REGION || 'us-east-1' }}
@ -1051,15 +1042,6 @@ jobs:
--instance-ids ${{ steps.ubuntu-sut.outputs.instance_id }}
fi
with_backoff aws ec2 describe-instances \
--filters Name=tag:GITHUB_SHA,Values=${GITHUB_SHA}-tests \
Name=tag:GITHUB_RUN_ID,Values=${GITHUB_RUN_ID}-tests \
Name=tag:GITHUB_RUN_NUMBER,Values=${GITHUB_RUN_NUMBER}-tests \
Name=tag:GITHUB_RUN_NUMBER,Values=${GITHUB_RUN_NUMBER}-tests \
Name=tag:GITHUB_RUN_ATTEMPT,Values=${GITHUB_RUN_ATTEMPT}-tests \
| jq -r .Reservations[].Instances[].InstanceId \
| xargs --no-run-if-empty aws ec2 terminate-instances --instance-ids
env:
AWS_DEFAULT_REGION: ${{ vars.AWS_REGION || 'us-east-1' }}