@@ -14,13 +14,15 @@ async function run() {
1414
1515 const command = core . getInput ( "command" ) ;
1616 const startupOpts = core . getInput ( "startup-options" ) . split ( " " ) ;
17+ const generateJobSummary = core . getBooleanInput ( "generate-job-summary" ) ;
1718
1819 const helperScript = await matlab . generateScript ( workspaceDir , command ) ;
1920 const execOpts = {
2021 env : {
2122 ...process . env ,
2223 MW_BATCH_LICENSING_ONLINE : "true" , // Remove when online batch licensing is the default
2324 MW_MATLAB_BUILDTOOL_DEFAULT_PLUGINS_FCN_OVERRIDE : "buildframework.getDefaultPlugins" ,
25+ MW_GENERATE_JOB_SUMMARY : String ( generateJobSummary ) ,
2426 } ,
2527 } ;
2628 await matlab
@@ -32,12 +34,15 @@ async function run() {
3234 startupOpts ,
3335 )
3436 . finally ( ( ) => {
35- const runnerTemp = process . env . RUNNER_TEMP || "" ;
36- const runId = process . env . GITHUB_RUN_ID || "" ;
37+ if ( generateJobSummary ) {
38+ const runnerTemp = process . env . RUNNER_TEMP || "" ;
39+ const runId = process . env . GITHUB_RUN_ID || "" ;
40+ const actionName = process . env . GITHUB_ACTION || "" ;
3741
38- buildSummary . processAndAddBuildSummary ( runnerTemp , runId ) ;
39- testResultsSummary . processAndAddTestSummary ( runnerTemp , runId , workspaceDir ) ;
40- core . summary . write ( ) ;
42+ buildSummary . processAndAddBuildSummary ( runnerTemp , actionName ) ;
43+ testResultsSummary . processAndAddTestSummary ( runnerTemp , runId , actionName , workspaceDir ) ;
44+ core . summary . write ( ) ;
45+ }
4146 } ) ;
4247}
4348
0 commit comments