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