mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
[Windows] Add Windows 2025 code (#11037)
This commit is contained in:
@@ -21,8 +21,13 @@ function Get-PostgreSQLTable
|
||||
function Get-MongoDBTable
|
||||
{
|
||||
$name = "MongoDB"
|
||||
if (Test-IsWin25) {
|
||||
$command = "mongod"
|
||||
} else {
|
||||
$command = "mongo"
|
||||
}
|
||||
$mongoService = Get-Service -Name $name
|
||||
$mongoVersion = (Get-Command -Name 'mongo').Version.ToString()
|
||||
$mongoVersion = (Get-Command -Name $command).Version.ToString()
|
||||
return [PSCustomObject]@{
|
||||
Version = $mongoVersion
|
||||
ServiceName = $name
|
||||
|
||||
Reference in New Issue
Block a user