mirror of
https://github.com/balena-io/open-balena.git
synced 2025-01-18 10:46:27 +00:00
remove redundant code
This commit is contained in:
parent
96d5617889
commit
88e2ee6cf0
18
.github/workflows/tests.yml
vendored
18
.github/workflows/tests.yml
vendored
@ -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' }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user