mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[mac OS] Remove AdoptOpenJDK (#8025)
This commit is contained in:
committed by
GitHub
parent
974c7589b9
commit
89acd994b2
@@ -12,11 +12,9 @@ function Get-JavaVersions {
|
||||
$version = $javaPath.split('/')[5]
|
||||
$fullVersion = $version.Replace('-', '+')
|
||||
$defaultPostfix = ($javaPath -eq $defaultJavaPath) ? " (default)" : ""
|
||||
$vendorName = ($javaPath -like '*Java_Adopt_jdk*') ? "Adopt OpenJDK" : "Eclipse Temurin"
|
||||
|
||||
[PSCustomObject] @{
|
||||
"Version" = $fullVersion + $defaultPostfix
|
||||
"Vendor" = $vendorName
|
||||
"Version" = $fullVersion + $defaultPostfix
|
||||
"Environment Variable" = $_.Name
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user