mirror of
https://github.com/actions/setup-java.git
synced 2025-06-29 12:34:14 +00:00
Extract right directory
This commit is contained in:
parent
71c35fe7fa
commit
05dd7fbe75
2 changed files with 8 additions and 4 deletions
|
@ -40,8 +40,12 @@ export async function getJava(
|
|||
tempDirectory,
|
||||
'temp_' + Math.floor(Math.random() * 2000000000)
|
||||
);
|
||||
await unzipJavaDownload(jdkFile, compressedFileExtension, tempDir);
|
||||
toolPath = await tc.cacheDir(tempDir, 'Java', versionSpec, arch);
|
||||
const jdkDir = await unzipJavaDownload(
|
||||
jdkFile,
|
||||
compressedFileExtension,
|
||||
tempDir
|
||||
);
|
||||
toolPath = await tc.cacheDir(jdkDir, 'Java', versionSpec, arch);
|
||||
}
|
||||
|
||||
let extendedJavaHome = 'JAVA_HOME_' + versionSpec + '_' + arch;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue