Skip to content

Commit

Permalink
Use path library
Browse files Browse the repository at this point in the history
  • Loading branch information
sameagen-MW committed Dec 11, 2023
1 parent 2abd2c8 commit 922aecf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@

import * as core from "@actions/core";
import * as exec from "@actions/exec";
import * as path from "path";
import { matlab } from "run-matlab-command-action";
import * as buildtool from "./buildtool";

@@ -23,7 +24,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 + "/" + workspaceExt, command);
const helperScript = await matlab.generateScript(path.join(workspaceDir, workspaceExt), command);
core.info("Successfully generated script");
return helperScript;
});

0 comments on commit 922aecf

Please sign in to comment.