File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 66
66
api-key : ${{ secrets.INFRACOST_API_KEY }}
67
67
- name : Run Infracost
68
68
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
70
70
71
71
# Checkout the branch you want Infracost to compare costs against, most commonly the target branch.
72
72
- name : Checkout base branch
77
77
- name : Run Infracost
78
78
shell : bash
79
79
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 \
82
81
--format=json \
83
- --compare-to=/tmp/infracost-base .json \
82
+ --compare-to=/tmp/infracost-new .json \
84
83
--out-file=/tmp/infracost.json && cat /tmp/infracost.json
85
84
86
85
- name : Post Infracost Comment
89
88
--repo=$GITHUB_REPOSITORY \
90
89
--github-token=${{ github.token }} \
91
90
--pull-request=${{ github.event.pull_request.number }} \
92
- --behavior=update
91
+ --behavior=update
You can’t perform that action at this time.
0 commit comments