Skip to content

Commit 01c6ed6

Browse files
authored
modify workflow
1 parent 0efbfbe commit 01c6ed6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/terraform-plan.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757

5858
- name: Save Plan JSON
5959
id: save-plan
60-
run: terraform show -json tfplan.out > tfplan.json
60+
run: terraform show -json tfplan.out > ../tfplan.json
6161
working-directory: ./terraform
6262

6363
# Checkout the branch you want Infracost to compare costs against, most commonly the target branch.
@@ -71,14 +71,14 @@ jobs:
7171
api-key: ${{ secrets.INFRACOST_API_KEY }}
7272
- name: Run Infracost
7373
run: |
74-
infracost breakdown --path=./terraform/tfplan.json --format=json --out-file=/tmp/infracost-base.json
74+
infracost breakdown --path=./tfplan.json --format=json --out-file=/tmp/infracost-base.json
7575
7676
# Checkout the PR branch with your infrastructure changes.
7777
- uses: actions/checkout@v4
7878
- name: Run Infracost
7979
shell: bash
8080
run: |
81-
infracost diff --path=./terraform/tfplan.json \
81+
infracost diff --path=./tfplan.json \
8282
--format=json \
8383
--compare-to=/tmp/infracost-base.json \
8484
--out-file=/tmp/infracost.json

0 commit comments

Comments
 (0)