virtual-environments => runner-images (#6033)

* virtual-environments => runner-images

- as per https://github.blog/changelog/2022-08-08-github-actions-runner-images-repository-refresh

* revert readme changes

- as per https://github.com/actions/runner-images/pull/6033#discussion_r941173809
This commit is contained in:
Casper da Costa-Luis
2022-08-10 13:55:34 +01:00
committed by GitHub
parent 03b7305ca1
commit 4994130a96
27 changed files with 54 additions and 54 deletions

View File

@@ -5,16 +5,16 @@ $osEdition = $caption.Substring($caption.LastIndexOf(" ")+1)
$osVersion = $os.Version
$imageVersion = $env:IMAGE_VERSION
$imageDataFile = $env:IMAGEDATA_FILE
$githubUrl="https://github.com/actions/virtual-environments/blob"
$githubUrl="https://github.com/actions/runner-images/blob"
if (Test-IsWin22) {
$imageLabel = "windows-2022"
$softwareUrl = "${githubUrl}/win22/${imageVersion}/images/win/Windows2022-Readme.md"
$releaseUrl="https://github.com/actions/virtual-environments/releases/tag/win22%2F${imageVersion}"
$releaseUrl="https://github.com/actions/runner-images/releases/tag/win22%2F${imageVersion}"
} elseif (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}"
$releaseUrl="https://github.com/actions/runner-images/releases/tag/win19%2F${imageVersion}"
} else {
throw "Invalid platform version is found. Either Windows Server 2019 or 2022 are required"
}