From 91b4ef883e9c6485fd599512cc27609549c808dc Mon Sep 17 00:00:00 2001 From: Sayali M Date: Wed, 24 Jul 2024 11:28:27 -0500 Subject: [PATCH] tf init before destroy --- .github/workflows/lth.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lth.yml b/.github/workflows/lth.yml index ff58119d..478966d1 100644 --- a/.github/workflows/lth.yml +++ b/.github/workflows/lth.yml @@ -36,14 +36,14 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - run: terraform init + working-directory: src/test/terraform + - name: Stop test database # Stop the test database if it is still running if: always() # Always destroy, even if the previous steps fail working-directory: src/test/terraform run: terraform destroy -auto-approve - - run: terraform init - working-directory: src/test/terraform - - run: terraform plan working-directory: src/test/terraform