Skip to content

Commit 62c7d87

Browse files
committed
revert plugins path logic
1 parent 6fa62c5 commit 62c7d87

File tree

2 files changed

+3
-337
lines changed

2 files changed

+3
-337
lines changed

package-lock.json

Lines changed: 0 additions & 336 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import * as core from "@actions/core";
44
import * as exec from "@actions/exec";
55
// TODO: update common-utils version when new version is released
66
import { matlab, testResultsSummary, buildSummary } from "common-utils";
7+
import * as path from "path";
78

89
/**
910
* Gather action inputs and then run action.
@@ -13,7 +14,8 @@ async function run() {
1314
const architecture = process.arch;
1415
const workspaceDir = process.cwd();
1516

16-
const command = core.getInput("command");
17+
const pluginsPath = path.join(__dirname, "plugins").replaceAll("'","''");
18+
const command = "addpath('"+ pluginsPath +"'); " + core.getInput("command");
1719
const startupOpts = core.getInput("startup-options").split(" ");
1820

1921
const helperScript = await matlab.generateScript(workspaceDir, command);

0 commit comments

Comments
 (0)