Fix Incorrect File Extension

This commit is contained in:
Gregory Mitchell 2024-06-18 23:37:51 -05:00
parent 99fc2135f7
commit 4f206bae88
No known key found for this signature in database
GPG key ID: 771A6C995A086B84

View file

@ -68,9 +68,7 @@ export class JetBrainsDistribution extends JavaBase {
const javaArchivePath = await tc.downloadTool(javaRelease.url); const javaArchivePath = await tc.downloadTool(javaRelease.url);
core.info(`Extracting Java archive...`); core.info(`Extracting Java archive...`);
const extension = getDownloadArchiveExtension(); const extractedJavaPath = await extractJdkFile(javaArchivePath);
const extractedJavaPath = await extractJdkFile(javaArchivePath, extension);
const archiveName = fs.readdirSync(extractedJavaPath)[0]; const archiveName = fs.readdirSync(extractedJavaPath)[0];
const archivePath = path.join(extractedJavaPath, archiveName); const archivePath = path.join(extractedJavaPath, archiveName);