File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments