Skip to content

Commit

Permalink
Merge pull request #6 from terramate-io/mariux-patch-1
Browse files Browse the repository at this point in the history
feat: only run on changed stacks
  • Loading branch information
soerenmartius authored Feb 28, 2024
2 parents 3bc8b94 + 465e97e commit cd6ad88
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,21 @@ jobs:

- name: Create Terraform plan on changed stacks
run: |
terramate run terraform init
terramate run terraform validate
terramate run terraform plan -out ./out.tfplan
terramate run --changed -- terraform init
terramate run --changed -- terraform validate
terramate run --changed -- terraform plan -out ./out.tfplan
- name: Generate Infracost cost estimate baseline
run: |
terramate run infracost breakdown \
terramate run --changed -- infracost breakdown \
--path ./out.tfplan \
--format=json \
--usage-file infracost-usage-medium.yml \
--out-file=./infracost-base.json
- name: Post Infracost comment
run: |
terramate run infracost comment github \
terramate run --changed -- infracost comment github \
--path=./infracost-base.json \
--repo=$GITHUB_REPOSITORY \
--github-token=${{github.token}} \
Expand Down

0 comments on commit cd6ad88

Please sign in to comment.