Skip to content

Commit 78c94a8

Browse files
authored
modify workflow
1 parent 532c2b8 commit 78c94a8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/terraform-plan.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,18 @@ jobs:
7171
api-key: ${{ secrets.INFRACOST_API_KEY }}
7272
- name: Run Infracost
7373
run: |
74-
infracost breakdown --path=../tfplan.json --format=json --out-file=/tmp/infracost-base.json && pwd
74+
infracost breakdown --path=. --format=json --out-file=/tmp/infracost-base.json && pwd && cat /tmp/infracost-base.json
7575
76-
# Checkout the PR branch with your infrastructure changes.
77-
- uses: actions/checkout@v4
76+
# Checkout the current PR branch so we can create a diff.
77+
- name: Checkout PR branch
78+
uses: actions/checkout@v4
7879
- name: Run Infracost
7980
shell: bash
8081
run: |
8182
infracost diff --path=../tfplan.json \
8283
--format=json \
8384
--compare-to=/tmp/infracost-base.json \
84-
--out-file=/tmp/infracost.json
85+
--out-file=/tmp/infracost.json && cat /tmp/infracost.json
8586
8687
- name: Post Infracost Comment
8788
run: |

0 commit comments

Comments
 (0)