mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00:00
add condition
This commit is contained in:
@@ -22,10 +22,13 @@ $markdown += New-MDList -Style Unordered -Lines @(
|
||||
"Image Version: $env:ImageVersion"
|
||||
)
|
||||
|
||||
$markdown += New-MDHeader "Enabled windows optional features" -Level 2
|
||||
$markdown += New-MDList -Style Unordered -Lines @(
|
||||
"Windows Subsystem for Linux"
|
||||
)
|
||||
if ($OSName -match "Microsoft Windows Server 2019 Datacenter")
|
||||
{
|
||||
$markdown += New-MDHeader "Enabled windows optional features" -Level 2
|
||||
$markdown += New-MDList -Style Unordered -Lines @(
|
||||
"Windows Subsystem for Linux"
|
||||
)
|
||||
}
|
||||
|
||||
$markdown += New-MDHeader "Installed Software" -Level 2
|
||||
$markdown += New-MDHeader "Language and Runtime" -Level 3
|
||||
|
||||
Reference in New Issue
Block a user