File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2032,6 +2032,7 @@ function run() {
2032
2032
const fullCoverage = JSON . parse ( core . getInput ( 'fullCoverageDiff' ) ) ;
2033
2033
const commandToRun = core . getInput ( 'runCommand' ) ;
2034
2034
const additionalCommentInfo = core . getInput ( 'additionalCommentInfo' ) ;
2035
+ const codeCoverageDirectory = core . getInput ( 'codeCoverageDirectory' ) ;
2035
2036
const delta = Number ( core . getInput ( 'delta' ) ) ;
2036
2037
const rawTotalDelta = core . getInput ( 'total_delta' ) ;
2037
2038
const mainBranchCoverageSummaryFileName = core . getInput ( 'mainBranchCoverageSummaryFileName' ) ;
@@ -2048,7 +2049,7 @@ function run() {
2048
2049
}
2049
2050
let commentId = null ;
2050
2051
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 ( ) ) ) ;
2052
2053
const codeCoverageOld = ( JSON . parse ( fs_1 . default . readFileSync ( mainBranchCoverageSummaryFileName ) . toString ( ) ) ) ;
2053
2054
const currentDirectory = child_process_1 . execSync ( 'pwd' )
2054
2055
. toString ( )
You can’t perform that action at this time.
0 commit comments