Skip to content

Commit

Permalink
chore: First implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Jefferson <jefferson.rios.caro@gmail.com>
  • Loading branch information
riosje committed Feb 26, 2024
1 parent 5d685c7 commit a7e048f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32759,14 +32759,14 @@ async function setupNsolid({ nodeVersion, nsolidVersion, platform, arch }) {
});
let toolPath = await downloadNsolid(metadata);
if (core.platform.isWindows) {
toolPath = external_path_.join(core.toWin32Path(toolPath));
toolPath = external_path_.join(core.core.toWin32Path(toolPath));
}
if (!core.platform.isWindows) {
toolPath = external_path_.join(toolPath, "bin");
}
core.info(`N|Solid has been added to the path at ${toolPath}`);
core.core.info(`N|Solid has been added to the path at ${toolPath}`);

core.addPath(toolPath);
core.core.addPath(toolPath);
return;
}

Expand Down
6 changes: 3 additions & 3 deletions src/lib/install.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import core from "@actions/core";
import { core, platform as os} from "@actions/core";
import * as tc from "@actions/tool-cache";
import { getNsolidVersion } from "./metadata.js";
import * as path from "path";
Expand All @@ -11,10 +11,10 @@ export async function setupNsolid({ nodeVersion, nsolidVersion, platform, arch }
arch,
});
let toolPath = await downloadNsolid(metadata);
if (core.platform.isWindows) {
if (os.isWindows) {
toolPath = path.join(core.toWin32Path(toolPath));
}
if (!core.platform.isWindows) {
if (!os.isWindows) {
toolPath = path.join(toolPath, "bin");
}
core.info(`N|Solid has been added to the path at ${toolPath}`);
Expand Down

0 comments on commit a7e048f

Please sign in to comment.