Skip to content

Commit 661c284

Browse files
Combine init, validate and plan in a single step (#3)
2 parents 3dbb6d4 + 5c33265 commit 661c284

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

.github/workflows/plan.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,11 @@ jobs:
4040
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
4141
aws-region: eu-central-1
4242

43-
- name: Run Terraform init on changed stacks
43+
- name: Create Terraform plan on changed stacks
4444
if: steps.list.outputs.stdout
45-
id: init
4645
run: |
4746
terramate run --changed -- terraform init
48-
49-
- name: Run Terraform validate on changed stacks
50-
if: steps.list.outputs.stdout
51-
id: validate
52-
run: |
5347
terramate run --changed -- terraform validate
54-
55-
- name: Create Terraform plan on changed stacks
56-
if: steps.list.outputs.stdout
57-
id: plan
58-
run: |
5948
terramate run --changed -- terraform plan -out out.tfplan
6049
6150
- name: Generate Preview Comment

0 commit comments

Comments
 (0)