mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
add replace from '+' to '-' (#3027)
This commit is contained in:
@@ -10,10 +10,11 @@ function Get-JavaVersions {
|
||||
$javaPath = $_.Value
|
||||
# Take semver from the java path
|
||||
$version = $javaPath.split('/')[5]
|
||||
$fullVersion = $version.Replace('-', '+')
|
||||
$defaultPostfix = ($javaPath -eq $defaultJavaPath) ? " (default)" : ""
|
||||
|
||||
[PSCustomObject] @{
|
||||
"Version" = $version + $defaultPostfix
|
||||
"Version" = $fullVersion + $defaultPostfix
|
||||
"Vendor" = "Adopt OpenJDK"
|
||||
"Environment Variable" = $_.Name
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user