mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
[MacOS] Add Adoptium to Java installer (#4116)
This commit is contained in:
@@ -12,10 +12,11 @@ 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" = "Adopt OpenJDK"
|
||||
"Vendor" = $vendorName
|
||||
"Environment Variable" = $_.Name
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user