mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
the Github CLI version fix for short version number (#1468)
* the Github CLI version fix for short version number * select the string with version in command output, get the version without date Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
This commit is contained in:
@@ -222,7 +222,9 @@ function Get-NewmanVersion {
|
||||
}
|
||||
|
||||
function Get-GHVersion {
|
||||
return "GitHub CLI $(gh --version)"
|
||||
($(gh --version) | Select-String -Pattern "gh version") -match "gh version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$ghVersion = $Matches.Version
|
||||
return "GitHub CLI $ghVersion"
|
||||
}
|
||||
|
||||
function Get-VisualCPPComponents {
|
||||
|
||||
Reference in New Issue
Block a user