Skip to content

Commit

Permalink
Update directory to be relative to the working dir
Browse files Browse the repository at this point in the history
  • Loading branch information
sameagen-MW committed Dec 11, 2023
1 parent 55f5a6d commit 2abd2c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import * as buildtool from "./buildtool";
async function run() {
const platform = process.platform;
const architecture = process.arch;
const workspaceDir = core.getInput("working-directory") || process.cwd();

const workspaceDir = process.cwd();
const workspaceExt = core.getInput("working-directory");

const options: buildtool.RunBuildOptions = {
Tasks: core.getInput("tasks"),
Expand All @@ -21,7 +23,7 @@ async function run() {
const startupOptions = core.getInput("startup-options").split(" ");

const helperScript = await core.group("Generate script", async () => {
const helperScript = await matlab.generateScript(workspaceDir, command);
const helperScript = await matlab.generateScript(workspaceDir + "/" + workspaceExt, command);
core.info("Successfully generated script");
return helperScript;
});
Expand Down

0 comments on commit 2abd2c8

Please sign in to comment.