mirror of
https://github.com/actions/setup-java.git
synced 2024-12-02 05:10:57 -05:00
Fix Incorrect File Extension
This commit is contained in:
parent
99fc2135f7
commit
4f206bae88
1 changed files with 1 additions and 3 deletions
|
@ -68,9 +68,7 @@ export class JetBrainsDistribution extends JavaBase {
|
|||
const javaArchivePath = await tc.downloadTool(javaRelease.url);
|
||||
|
||||
core.info(`Extracting Java archive...`);
|
||||
const extension = getDownloadArchiveExtension();
|
||||
|
||||
const extractedJavaPath = await extractJdkFile(javaArchivePath, extension);
|
||||
const extractedJavaPath = await extractJdkFile(javaArchivePath);
|
||||
|
||||
const archiveName = fs.readdirSync(extractedJavaPath)[0];
|
||||
const archivePath = path.join(extractedJavaPath, archiveName);
|
||||
|
|
Loading…
Reference in a new issue