File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -71,23 +71,18 @@ jobs:
71
71
api-key : ${{ secrets.INFRACOST_API_KEY }}
72
72
- name : Run Infracost
73
73
run : |
74
- infracost breakdown --path=./terraform --format=json --out-file=/tmp/infracost-base.json
74
+ infracost breakdown --path=./terraform/tfplan.json --format=json --out-file=/tmp/infracost-base.json
75
75
76
76
# Checkout the PR branch with your infrastructure changes.
77
77
- uses : actions/checkout@v4
78
78
- name : Run Infracost
79
79
shell : bash
80
80
run : |
81
- infracost diff --path=./terraform \
81
+ infracost diff --path=./terraform/tfplan.json \
82
82
--format=json \
83
83
--compare-to=/tmp/infracost-base.json \
84
84
--out-file=/tmp/infracost.json
85
85
86
- # generate the html report based on the JSON output from last step
87
- - name : Generate Infracost Report
88
- run : |
89
- infracost output --path=/tmp/infracost.json --show-skipped --format html --out-file report.html
90
-
91
86
- name : Post Infracost Comment
92
87
run : |
93
88
infracost comment github --path=/tmp/infracost.json \
You can’t perform that action at this time.
0 commit comments