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 9 additions and 3 deletions

4
dist/cleanup/index.js generated vendored
View File

@ -18293,7 +18293,9 @@ function downloadExtractAndCacheJDK(downloader, toolName, version) {
core.info(`Found ${toolName} ${version} in tool-cache @ ${toolPath}`);
}
else {
const extractDir = yield extract(yield downloader());
const archive = yield downloader();
core.setOutput('archive', archive);
const extractDir = yield extract(archive);
core.info(`Adding ${toolName} ${version} to tool-cache ...`);
toolPath = yield tc.cacheDir(extractDir, toolName, semVersion);
}

4
dist/main/index.js generated vendored
View File

@ -19072,7 +19072,9 @@ function downloadExtractAndCacheJDK(downloader, toolName, version) {
core.info(`Found ${toolName} ${version} in tool-cache @ ${toolPath}`);
}
else {
const extractDir = yield extract(yield downloader());
const archive = yield downloader();
core.setOutput('archive', archive);
const extractDir = yield extract(archive);
core.info(`Adding ${toolName} ${version} to tool-cache ...`);
toolPath = yield tc.cacheDir(extractDir, toolName, semVersion);
}

View File

@ -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)
}