Skip to content

Commit aa18f4e

Browse files
Merge pull request #6 from sumanmanna134/actions
add ref
2 parents fec8fcd + 47fc584 commit aa18f4e

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

‎.github/workflows/terraform.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@ jobs:
4747
id: plan
4848
run: terraform plan --var-file="./tfvars/terraform.tfvars" -out azinfra.tfplan -no-color
4949

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
50+
- name: Terraform apply
51+
id: apply
52+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
53+
run: terraform apply azinfra.tfplan -auto-approve

0 commit comments

Comments
 (0)