Skip to content

Commit 7b04a53

Browse files
committed
update
1 parent fddcb12 commit 7b04a53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dist/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2032,6 +2032,7 @@ function run() {
20322032
const fullCoverage = JSON.parse(core.getInput('fullCoverageDiff'));
20332033
const commandToRun = core.getInput('runCommand');
20342034
const additionalCommentInfo = core.getInput('additionalCommentInfo');
2035+
const codeCoverageDirectory = core.getInput('codeCoverageDirectory');
20352036
const delta = Number(core.getInput('delta'));
20362037
const rawTotalDelta = core.getInput('total_delta');
20372038
const mainBranchCoverageSummaryFileName = core.getInput('mainBranchCoverageSummaryFileName');
@@ -2048,7 +2049,7 @@ function run() {
20482049
}
20492050
let commentId = null;
20502051
child_process_1.execSync(`${commandToRun}`);
2051-
const codeCoverageNew = (JSON.parse(fs_1.default.readFileSync('coverage-summary.json').toString()));
2052+
const codeCoverageNew = (JSON.parse(fs_1.default.readFileSync(codeCoverageDirectory).toString()));
20522053
const codeCoverageOld = (JSON.parse(fs_1.default.readFileSync(mainBranchCoverageSummaryFileName).toString()));
20532054
const currentDirectory = child_process_1.execSync('pwd')
20542055
.toString()

0 commit comments

Comments
 (0)