Skip to content

Commit 4a9868e

Browse files
committed
Fix installer.ts errors
1 parent 62819aa commit 4a9868e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/installer.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as os from "os";
55
import * as path from "path";
66
import * as util from "util";
77
import * as httpm from "@actions/http-client";
8-
import * as auth from "@actions/http-client/auth";
8+
import * as auth from "@actions/http-client/lib/auth";
99
import * as semver from "semver";
1010

1111
if (!tempDirectory) {
@@ -66,7 +66,7 @@ async function downloadRelease(version: string): Promise<string> {
6666
try {
6767
const token: string = core.getInput("token", { required: true });
6868
downloadPath = await tc.downloadTool(downloadUrl, undefined, token);
69-
} catch (error) {
69+
} catch (error: any) {
7070
core.debug(error);
7171
throw `Failed to download version ${version}: ${error}`;
7272
}

0 commit comments

Comments
 (0)