We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 655513b commit 0b155beCopy full SHA for 0b155be
.github/workflows/e2e-versions.yml
@@ -113,7 +113,7 @@ jobs:
113
foreach ($version in $versionsArr)
114
{
115
$envName = "JAVA_HOME_${version}_${env:RUNNER_ARCH}"
116
- $JavaVersionPath = (Get-ChildItem env: | grep "$envName").Replace("$envName", "").Trim()
+ $JavaVersionPath = [Environment]::GetEnvironmentVariable($envName)
117
if (-not (Test-Path "$JavaVersionPath")) {
118
Write-Host "$envName is not found"
119
exit 1
0 commit comments