There was an error while loading. Please reload this page.
2 parents fec8fcd + 47fc584 commit aa18f4eCopy full SHA for aa18f4e
.github/workflows/terraform.yml
@@ -47,10 +47,7 @@ jobs:
47
id: plan
48
run: terraform plan --var-file="./tfvars/terraform.tfvars" -out azinfra.tfplan -no-color
49
50
- - run: echo "event name is:" ${{ github.event_name }}
51
- - run: echo "event type is:" ${{ github.ref }}
52
-
53
- # - name: Terraform apply
54
- # id: apply
55
- # if: github.ref == 'refs/heads/"main"' && github.event_name == 'push'
56
- # 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
0 commit comments