File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -71,17 +71,18 @@ jobs:
71
71
api-key : ${{ secrets.INFRACOST_API_KEY }}
72
72
- name : Run Infracost
73
73
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
75
75
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
78
79
- name : Run Infracost
79
80
shell : bash
80
81
run : |
81
82
infracost diff --path=../tfplan.json \
82
83
--format=json \
83
84
--compare-to=/tmp/infracost-base.json \
84
- --out-file=/tmp/infracost.json
85
+ --out-file=/tmp/infracost.json && cat /tmp/infracost.json
85
86
86
87
- name : Post Infracost Comment
87
88
run : |
You can’t perform that action at this time.
0 commit comments