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 20, 2024
1 parent 4d89220 commit 38ed051
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,11 @@ async function run() {
const startupOptions = core.getInput("startup-options").split(" ");

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

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

}};

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

Expand Down

0 comments on commit 38ed051

Please sign in to comment.