Export archive as output.

This commit is contained in:
Fabio Niephaus 2022-12-12 21:36:02 +01:00
parent eacba1575b
commit 2f82a03f52
No known key found for this signature in database
GPG Key ID: F21CF5275F31DFD6
3 changed files with 3 additions and 1 deletions

BIN
dist/cleanup/index.js generated vendored

Binary file not shown.

BIN
dist/main/index.js generated vendored

Binary file not shown.

View File

@ -65,7 +65,9 @@ export async function downloadExtractAndCacheJDK(
if (toolPath) { if (toolPath) {
core.info(`Found ${toolName} ${version} in tool-cache @ ${toolPath}`) core.info(`Found ${toolName} ${version} in tool-cache @ ${toolPath}`)
} else { } 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 ...`) core.info(`Adding ${toolName} ${version} to tool-cache ...`)
toolPath = await tc.cacheDir(extractDir, toolName, semVersion) toolPath = await tc.cacheDir(extractDir, toolName, semVersion)
} }