mirror of
https://github.com/actions/setup-java.git
synced 2025-11-06 14:53:45 +00:00
Update index.js
This commit is contained in:
parent
249ea4386f
commit
109dbacebe
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
@ -4668,6 +4668,7 @@ if (!tempDirectory) {
|
|||||||
}
|
}
|
||||||
function getJava(version, arch, jdkFile, javaPackage) {
|
function getJava(version, arch, jdkFile, javaPackage) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
version = normalizeVersion(version);
|
||||||
let toolPath = tc.find(javaPackage, version);
|
let toolPath = tc.find(javaPackage, version);
|
||||||
if (toolPath) {
|
if (toolPath) {
|
||||||
core.debug(`Tool found in cache ${toolPath}`);
|
core.debug(`Tool found in cache ${toolPath}`);
|
||||||
@ -4805,7 +4806,6 @@ function unzipJavaDownload(repoRoot, fileEnding, destinationFolder, extension) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
function getDownloadInfo(refs, version, javaPackage) {
|
function getDownloadInfo(refs, version, javaPackage) {
|
||||||
version = normalizeVersion(version);
|
|
||||||
let extension = '';
|
let extension = '';
|
||||||
if (IS_WINDOWS) {
|
if (IS_WINDOWS) {
|
||||||
extension = `-win_x64.zip`;
|
extension = `-win_x64.zip`;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user