Skip to content

Commit 084bd66

Browse files
authored
modify
1 parent f715dbd commit 084bd66

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/terraform-plan.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
api-key: ${{ secrets.INFRACOST_API_KEY }}
6767
- name: Run Infracost
6868
run: |
69-
infracost breakdown --path=./terraform --format=json --out-file=/tmp/infracost.json && pwd && cat /tmp/infracost.json
69+
infracost breakdown --path=./terraform --format=json --out-file=/tmp/infracost-new.json && pwd && cat /tmp/infracost-new.json
7070
7171
# Checkout the branch you want Infracost to compare costs against, most commonly the target branch.
7272
- name: Checkout base branch
@@ -77,10 +77,9 @@ jobs:
7777
- name: Run Infracost
7878
shell: bash
7979
run: |
80-
infracost breakdown --path=./terraform --format=json --out-file=/tmp/infracost-base.json && pwd && cat /tmp/infracost-base.json
81-
infracost diff --path=../tfplan.json \
80+
infracost diff --path=./terraform \
8281
--format=json \
83-
--compare-to=/tmp/infracost-base.json \
82+
--compare-to=/tmp/infracost-new.json \
8483
--out-file=/tmp/infracost.json && cat /tmp/infracost.json
8584
8685
- name: Post Infracost Comment
@@ -89,4 +88,4 @@ jobs:
8988
--repo=$GITHUB_REPOSITORY \
9089
--github-token=${{ github.token }} \
9190
--pull-request=${{ github.event.pull_request.number }} \
92-
--behavior=update
91+
--behavior=update

0 commit comments

Comments
 (0)