Skip to content

Commit

Permalink
Changed env variable setting
Browse files Browse the repository at this point in the history
  • Loading branch information
nbhoski committed May 17, 2024
1 parent 2887995 commit 943f02d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ async function run() {
const startupOptions = core.getInput("startup-options").split(" ");

const helperScript = await matlab.generateScript(workspaceDir, command);
const execOptions = {process.env,env:{"MW_MATLAB_BUILDTOOL_DEFAULT_PLUGINS_FCN_OVERRIDE":"ciplugins.github.getDefaultPlugins"}};
const customEnv = {
...process.env,
"MW_MATLAB_BUILDTOOL_DEFAULT_PLUGINS_FCN_OVERRIDE":"ciplugins.github.getDefaultPlugins",
};

const execOptions: exec.ExecOptions = {
env: customEnv,
};
const execOptions = {process.env,env:{}};

Check failure on line 33 in src/index.ts

View workflow job for this annotation

GitHub Actions / Build and Test

',' expected.
await matlab.runCommand(helperScript, platform, architecture, (cmd,args)=>exec.exec(cmd,args,execOptions), startupOptions);
}

Expand Down

0 comments on commit 943f02d

Please sign in to comment.