Skip to content

Commit da8f769

Browse files
minor changes
1 parent ec978f7 commit da8f769

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/e2e-versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
Get-ChildItem env:
114114
foreach ($version in $versionsArr)
115115
{
116-
$envName = "JAVA_HOME_$version"
116+
$envName = "JAVA_HOME_$version_${env:RUNNER_ARCH}"
117117
Write-Host "Check ${env:\$envName}"
118118
$JavaVersionPath = (Get-ChildItem env: | grep "$envName").Replace("$envName", "").Trim()
119119
if (-not (Test-Path "$JavaVersionPath")) {

dist/setup/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103210,7 +103210,7 @@ class JavaBase {
103210103210
core.setOutput('distribution', this.distribution);
103211103211
core.setOutput('path', toolPath);
103212103212
core.setOutput('version', version);
103213-
core.exportVariable(`JAVA_HOME_${majorVerssion}`, toolPath);
103213+
core.exportVariable(`JAVA_HOME_${majorVerssion}_${this.architecture.toUpperCase()}`, toolPath);
103214103214
}
103215103215
}
103216103216
exports.JavaBase = JavaBase;

src/distributions/base-installer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,6 @@ export abstract class JavaBase {
148148
core.setOutput('distribution', this.distribution);
149149
core.setOutput('path', toolPath);
150150
core.setOutput('version', version);
151-
core.exportVariable(`JAVA_HOME_${majorVerssion}`, toolPath);
151+
core.exportVariable(`JAVA_HOME_${majorVerssion}_${this.architecture.toUpperCase()}`, toolPath);
152152
}
153153
}

0 commit comments

Comments
 (0)