Skip to content

Commit

Permalink
Merge pull request #6 from sumanmanna134/actions
Browse files Browse the repository at this point in the history
add ref
  • Loading branch information
sumanmanna134 authored Jul 26, 2024
2 parents fec8fcd + 47fc584 commit aa18f4e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit aa18f4e

Please sign in to comment.