mirror of
https://github.com/actions/setup-java.git
synced 2025-08-24 08:31:21 +08:00
Add output parameters for the tool path and version
This allows calling the action multiple times in the same job and retrieving the path and/or version in other steps. Fixes #65
This commit is contained in:
@@ -90,6 +90,8 @@ export async function getJava(
|
||||
core.exportVariable('JAVA_HOME', toolPath);
|
||||
core.exportVariable(extendedJavaHome, toolPath);
|
||||
core.addPath(path.join(toolPath, 'bin'));
|
||||
core.setOutput('path', toolPath);
|
||||
core.setOutput('version', version);
|
||||
}
|
||||
|
||||
function getCacheVersionString(version: string) {
|
||||
|
Reference in New Issue
Block a user