mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 07:46:57 +00:00
[Windows] Implement minor improvements, rev 2 (#3839)
* implement minor improvements * Update Install-WDK.ps1 * fix nitpick
This commit is contained in:
@@ -7,18 +7,16 @@ $imageVersion = $env:IMAGE_VERSION
|
||||
$imageDataFile = $env:IMAGEDATA_FILE
|
||||
$githubUrl="https://github.com/actions/virtual-environments/blob"
|
||||
|
||||
if ($caption -match "2019")
|
||||
{
|
||||
if (Test-IsWin19) {
|
||||
$imageLabel = "windows-2019"
|
||||
$softwareUrl = "${githubUrl}/win19/${imageVersion}/images/win/Windows2019-Readme.md"
|
||||
$releaseUrl="https://github.com/actions/virtual-environments/releases/tag/win19%2F${imageVersion}"
|
||||
}
|
||||
|
||||
if ($caption -match "2016")
|
||||
{
|
||||
} elseif (Test-IsWin16) {
|
||||
$imageLabel = "windows-2016"
|
||||
$softwareUrl = "${githubUrl}/win16/${imageVersion}/images/win/Windows2016-Readme.md"
|
||||
$releaseUrl="https://github.com/actions/virtual-environments/releases/tag/win16%2F${imageVersion}"
|
||||
} else {
|
||||
throw "Invalid platform version is found. Either Windows Server 2016 or 2019 or 2022 are required"
|
||||
}
|
||||
|
||||
$json = @"
|
||||
|
||||
Reference in New Issue
Block a user