Skip to content

Commit

Permalink
Merge pull request #4 from sumanmanna134/actions
Browse files Browse the repository at this point in the history
test actions
  • Loading branch information
sumanmanna134 authored Jul 26, 2024
2 parents ad9c440 + 6d09522 commit e8ed06c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ jobs:
- name: Terraform plan
id: plan
run: terraform plan --var-file="./tfvars/terraform.tfvars" -out azinfra.tfplan -no-color
- name: Terraform apply
id: apply
if: github.ref == 'refs/heads/"main"' && github.event_name == 'push'
run: terraform apply azinfra.tfplan -auto-approve

- run: echo "event name is:" ${{ github.event_name }}
- run: echo "event type is:" ${{ github.event.action }}

# - 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 e8ed06c

Please sign in to comment.