Skip to content

Commit ef749c3

Browse files
committed
Add group and logging to JAVA_HOME setup
1 parent 4158eb5 commit ef749c3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

common.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -405,5 +405,10 @@ export function setupPath(newPathEntries) {
405405
}
406406

407407
export function setupJavaHome() {
408-
core.exportVariable("JAVA_HOME", process.env[`JAVA_HOME_21_${os.arch().toUpperCase()}`]);
408+
core.startGroup(`Modifying JAVA_HOME for JRuby`)
409+
let newHomeVar = `JAVA_HOME_21_${os.arch().toUpperCase()}`;
410+
let newHome = process.env[newHomeVar];
411+
console.log(`Setting JAVA_HOME to ${newHomeVar} path ${newHome}`)
412+
core.exportVariable("JAVA_HOME", newHome);
413+
core.endGroup()
409414
}

0 commit comments

Comments
 (0)