From 109dbacebe6a9c1f892b8e41c339e056e4a508a8 Mon Sep 17 00:00:00 2001 From: Plamen Totev Date: Tue, 14 Apr 2020 21:31:28 +0300 Subject: [PATCH] Update index.js --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 96632653..60a3be91 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4668,6 +4668,7 @@ if (!tempDirectory) { } function getJava(version, arch, jdkFile, javaPackage) { return __awaiter(this, void 0, void 0, function* () { + version = normalizeVersion(version); let toolPath = tc.find(javaPackage, version); if (toolPath) { core.debug(`Tool found in cache ${toolPath}`); @@ -4805,7 +4806,6 @@ function unzipJavaDownload(repoRoot, fileEnding, destinationFolder, extension) { }); } function getDownloadInfo(refs, version, javaPackage) { - version = normalizeVersion(version); let extension = ''; if (IS_WINDOWS) { extension = `-win_x64.zip`;