diff --git a/lib/installer.js b/lib/installer.js index 30d76bdc..163f5d8e 100644 --- a/lib/installer.js +++ b/lib/installer.js @@ -49,10 +49,13 @@ function getJava(version, arch, jdkFile) { else { let compressedFileExtension = ''; if (!jdkFile) { + core.debug('Downloading Jdk from Azul'); jdkFile = yield downloadJava(version); compressedFileExtension = IS_WINDOWS ? '.zip' : '.tar.gz'; } - core.debug('Retrieving Jdk from local path'); + else { + core.debug('Retrieving Jdk from local path'); + } compressedFileExtension = compressedFileExtension || getFileEnding(jdkFile); let tempDir = path.join(tempDirectory, 'temp_' + Math.floor(Math.random() * 2000000000)); const jdkDir = yield unzipJavaDownload(jdkFile, compressedFileExtension, tempDir); diff --git a/src/installer.ts b/src/installer.ts index bf5d2163..f182f41e 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -37,10 +37,12 @@ export async function getJava( } else { let compressedFileExtension = ''; if (!jdkFile) { + core.debug('Downloading Jdk from Azul'); jdkFile = await downloadJava(version); compressedFileExtension = IS_WINDOWS ? '.zip' : '.tar.gz'; + } else { + core.debug('Retrieving Jdk from local path'); } - core.debug('Retrieving Jdk from local path'); compressedFileExtension = compressedFileExtension || getFileEnding(jdkFile); let tempDir: string = path.join( tempDirectory,