mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 01:46:46 +00:00
Update index.js
This commit is contained in:
parent
249ea4386f
commit
109dbacebe
1 changed files with 1 additions and 1 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
|
@ -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`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue