mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
replace condition with function Test-IsWin19
This commit is contained in:
@@ -22,7 +22,7 @@ $markdown += New-MDList -Style Unordered -Lines @(
|
|||||||
"Image Version: $env:ImageVersion"
|
"Image Version: $env:ImageVersion"
|
||||||
)
|
)
|
||||||
|
|
||||||
if ($OSName -match "Microsoft Windows Server 2019 Datacenter")
|
if (Test-IsWin19)
|
||||||
{
|
{
|
||||||
$markdown += New-MDHeader "Enabled windows optional features" -Level 2
|
$markdown += New-MDHeader "Enabled windows optional features" -Level 2
|
||||||
$markdown += New-MDList -Style Unordered -Lines @(
|
$markdown += New-MDList -Style Unordered -Lines @(
|
||||||
|
|||||||
Reference in New Issue
Block a user