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.
This commit is contained in:
Michael Li authored and GitHub committed 2023-02-22 17:42:19 -05:00
1 parent ad5c6d836e
commit 9512b524f2
1 file changed
+1
+1
View File
@@ -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