diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 65ca0ca..d7511dd 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -47,10 +47,7 @@ jobs: id: plan run: terraform plan --var-file="./tfvars/terraform.tfvars" -out azinfra.tfplan -no-color - - run: echo "event name is:" ${{ github.event_name }} - - run: echo "event type is:" ${{ github.ref }} - - # - name: Terraform apply - # id: apply - # if: github.ref == 'refs/heads/"main"' && github.event_name == 'push' - # run: terraform apply azinfra.tfplan -auto-approve + - name: Terraform apply + id: apply + if: github.ref == 'refs/heads/main' && github.event_name == 'push' + run: terraform apply azinfra.tfplan -auto-approve