Skip to content

Commit 55d1bf0

Browse files
committed
Set MW_BATCH_LICENSING_ONLINE to true
1 parent 5ceaeee commit 55d1bf0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ async function run() {
1717
const startupOpts = core.getInput("startup-options").split(" ");
1818

1919
const helperScript = await matlab.generateScript(workspaceDir, command);
20-
await matlab.runCommand(helperScript, platform, architecture, exec.exec, startupOpts);
20+
const execOptions = {
21+
env: {...process.env, MW_BATCH_LICENSING_ONLINE: 'true'} // remove when online batch licensing is the default
22+
};
23+
await matlab.runCommand(helperScript, platform, architecture, (cmd,args)=>exec.exec(cmd,args,execOptions), startupOpts);
2124
}
2225

2326
// Only run this action if it is invoked directly. Do not run if this node

0 commit comments

Comments
 (0)