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

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

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

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

0 comments on commit 4d89220

Please sign in to comment.