@@ -4,7 +4,7 @@ import * as core from "@actions/core";
44import * as exec from "@actions/exec" ;
55import * as scriptgen from "./scriptgen" ;
66// TODO: update common-utils version when new version is released
7- import { testResultsSummary , matlab } from "common-utils" ;
7+ import { matlab , testResultsSummary } from "common-utils" ;
88import * as path from "path" ;
99
1010/**
@@ -14,9 +14,6 @@ async function run() {
1414 const platform = process . platform ;
1515 const architecture = process . arch ;
1616 const workspaceDir = process . cwd ( ) ;
17- const runnerTemp = process . env . RUNNER_TEMP || '' ;
18- const runId = process . env . GITHUB_RUN_ID || '' ;
19- const actionName = process . env . GITHUB_ACTION || '' ;
2017
2118 const options : scriptgen . RunTestsOptions = {
2219 JUnitTestResults : core . getInput ( "test-results-junit" ) ,
@@ -44,6 +41,10 @@ async function run() {
4441 core . info ( "Successfully generated test script!" ) ;
4542
4643 await matlab . runCommand ( helperScript , platform , architecture , exec . exec , startupOptions ) . finally ( ( ) => {
44+ const runnerTemp = process . env . RUNNER_TEMP || '' ;
45+ const runId = process . env . GITHUB_RUN_ID || '' ;
46+ const actionName = process . env . GITHUB_ACTION || '' ;
47+
4748 const testResultsData = testResultsSummary . getTestResults ( runnerTemp , runId , workspaceDir ) ;
4849 if ( testResultsData ) {
4950 testResultsSummary . writeSummary ( testResultsData , actionName ) ;
0 commit comments