Skip to content

Commit

Permalink
tf init before destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayali M authored and Sayali M committed Jul 24, 2024
1 parent 8d48d32 commit 91b4ef8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 91b4ef8

Please sign in to comment.