Skip to content

Commit

Permalink
add terraform apply step
Browse files Browse the repository at this point in the history
  • Loading branch information
sunu committed Nov 24, 2023
1 parent 773f85b commit 9a3c738
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
- name: Terraform Plan
id: plan
working-directory: ./terraform
if: github.event_name == 'pull_request'
run: terraform plan -no-color -input=false
continue-on-error: true
- name: Update Pull Request
Expand Down Expand Up @@ -81,3 +82,7 @@ jobs:
working-directory: ./terraform
if: steps.plan.outcome == 'failure'
run: exit 1
- name: Terraform Apply
working-directory: ./terraform
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: terraform apply -auto-approve

0 comments on commit 9a3c738

Please sign in to comment.