diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index 35d53ac..c26d8de 100644 Binary files a/dist/cleanup/index.js and b/dist/cleanup/index.js differ diff --git a/dist/main/index.js b/dist/main/index.js index de0f7df..1cdcc9c 100644 Binary files a/dist/main/index.js and b/dist/main/index.js differ diff --git a/src/utils.ts b/src/utils.ts index 653a0b3..7ee2c6b 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -65,7 +65,9 @@ export async function downloadExtractAndCacheJDK( if (toolPath) { core.info(`Found ${toolName} ${version} in tool-cache @ ${toolPath}`) } else { - const extractDir = await extract(await downloader()) + const archive = await downloader() + core.setOutput('archive', archive) + const extractDir = await extract(archive) core.info(`Adding ${toolName} ${version} to tool-cache ...`) toolPath = await tc.cacheDir(extractDir, toolName, semVersion) }