We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07e17c4 commit 1022f67Copy full SHA for 1022f67
setup-binary.ts
@@ -2,7 +2,7 @@ import * as core from "@actions/core";
2
import * as hc from "@hashicorp/js-releases";
3
import * as io from "@actions/io";
4
import * as cache from "@actions/tool-cache";
5
-import * as sys from "./system";
+import {getPlatform, getArch} from "./system";
6
import * as semver from "semver";
7
import cp from "child_process";
8
import path from "path";
@@ -25,8 +25,8 @@ async function fetchBinary(
25
version: string,
26
userAgent: string
27
): Promise<string> {
28
- const osPlatform = sys.getPlatform();
29
- const osArch = sys.getArch();
+ const osPlatform = getPlatform();
+ const osArch = getArch();
30
const tmpDir = getTempDir();
31
32
let binaryPath: string;
0 commit comments