From a0f3adc3b96d7cc0ee08bda3cb29366f07de6f8b Mon Sep 17 00:00:00 2001 From: Suman Manna Date: Sat, 21 Sep 2024 04:11:07 +0530 Subject: [PATCH] Update terraform.yaml --- .github/workflows/terraform.yaml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/terraform.yaml b/.github/workflows/terraform.yaml index f0b7498..58bcf18 100644 --- a/.github/workflows/terraform.yaml +++ b/.github/workflows/terraform.yaml @@ -21,24 +21,20 @@ jobs: with: cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} - - name: Select Azure - id: SA - run: ls - - name: Terraform Format id: fmt - run: terraform fmt + run: cd azure && terraform fmt - name: Terraform init id: init - run: terraform init + run: cd azure && terraform init - name: Terraform validate id: validate - run: terraform validate + run: cd azure && terraform validate - name: plan - run: terraform plan + run: cd azure && terraform plan continue-on-error: true - name: Terraform Plan Status @@ -47,4 +43,4 @@ jobs: - name: Terraform Apply if: steps.plan.outcome == 'success' - run: terraform apply -auto-approve -input=false + run: cd azure && terraform apply -auto-approve -input=false