From 9512b524f2a116b1a9dd2ef69da51f791db59b92 Mon Sep 17 00:00:00 2001 From: Michael Li Date: Wed, 22 Feb 2023 17:42:19 -0500 Subject: [PATCH] chore(enos): Always destroy enos infrastructure (#3000) When the `Run Enos scenario` and `Retry Enos scenario` steps fail, the Destroy command does not get run since the `Retry` step marks the workflow as failed. This leaves some infrastructure hanging around. --- .github/workflows/enos-run.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/enos-run.yml b/.github/workflows/enos-run.yml index d5ea20bf5..ce2d72312 100644 --- a/.github/workflows/enos-run.yml +++ b/.github/workflows/enos-run.yml @@ -170,6 +170,7 @@ jobs: export ENOS_VAR_enos_user=$GITHUB_ACTOR && \ enos scenario run --timeout 60m0s --chdir ./enos ${{ matrix.filter }} - name: Destroy Enos scenario + if: ${{ always() }} env: ENOS_VAR_aws_region: us-east-1 ENOS_VAR_aws_ssh_keypair_name: ${{ github.event.repository.name }}-ci-ssh-key