diff --git a/.github/workflows/e2e-tests-with-operator.yml b/.github/workflows/e2e-tests-with-operator.yml index b932076411..89c2d75b2a 100644 --- a/.github/workflows/e2e-tests-with-operator.yml +++ b/.github/workflows/e2e-tests-with-operator.yml @@ -189,7 +189,7 @@ jobs: # file locks are being held from SIGTERMS dispatched in previous # steps. - name: Destroy resources - if: ${{ cancelled() }} + if: ${{ cancelled() || failure() }} shell: bash {0} working-directory: testing-framework/terraform run: | @@ -209,4 +209,4 @@ jobs: success: ${{ needs.run-batch-job.result == 'success' }} region: us-west-2 secrets: - roleArn: ${{ secrets.METRICS_ROLE_ARN }} \ No newline at end of file + roleArn: ${{ secrets.METRICS_ROLE_ARN }}