mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 09:56:46 +00:00
Extract right directory
This commit is contained in:
parent
71c35fe7fa
commit
05dd7fbe75
2 changed files with 8 additions and 4 deletions
|
@ -49,8 +49,8 @@ function getJava(versionSpec, arch, jdkFile) {
|
|||
core.debug('Retrieving Jdk from local path');
|
||||
const compressedFileExtension = getFileEnding(jdkFile);
|
||||
let tempDir = path.join(tempDirectory, 'temp_' + Math.floor(Math.random() * 2000000000));
|
||||
yield unzipJavaDownload(jdkFile, compressedFileExtension, tempDir);
|
||||
toolPath = yield tc.cacheDir(tempDir, 'Java', versionSpec, arch);
|
||||
const jdkDir = yield unzipJavaDownload(jdkFile, compressedFileExtension, tempDir);
|
||||
toolPath = yield tc.cacheDir(jdkDir, 'Java', versionSpec, arch);
|
||||
}
|
||||
let extendedJavaHome = 'JAVA_HOME_' + versionSpec + '_' + arch;
|
||||
core.exportVariable('JAVA_HOME', toolPath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue