Skip to content

Commit

Permalink
Combine init, validate and plan in a single step (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenmartius authored Aug 8, 2023
2 parents 3dbb6d4 + 5c33265 commit 661c284
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,11 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1

- name: Run Terraform init on changed stacks
- name: Create Terraform plan on changed stacks
if: steps.list.outputs.stdout
id: init
run: |
terramate run --changed -- terraform init
- name: Run Terraform validate on changed stacks
if: steps.list.outputs.stdout
id: validate
run: |
terramate run --changed -- terraform validate
- name: Create Terraform plan on changed stacks
if: steps.list.outputs.stdout
id: plan
run: |
terramate run --changed -- terraform plan -out out.tfplan
- name: Generate Preview Comment
Expand Down

0 comments on commit 661c284

Please sign in to comment.