mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-14 13:56:47 +00:00
[Windows] Fix version output for vcpkg (#2142)
* change version output for vcpkg * change to short commit id * minor change * minor change * minor change * resolve issue
This commit is contained in:
committed by
GitHub
parent
f415c1f30f
commit
84744e30de
@@ -103,7 +103,8 @@ function Get-ChocoVersion {
|
|||||||
function Get-VcpkgVersion {
|
function Get-VcpkgVersion {
|
||||||
($(vcpkg version) | Out-String) -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
($(vcpkg version) | Out-String) -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||||
$vcpkgVersion = $Matches.Version
|
$vcpkgVersion = $Matches.Version
|
||||||
return "Vcpkg $vcpkgVersion"
|
$commitId = git -C "C:\vcpkg" rev-parse --short HEAD
|
||||||
|
return "Vcpkg $vcpkgVersion (build from master <$commitId>)"
|
||||||
}
|
}
|
||||||
|
|
||||||
function Get-NPMVersion {
|
function Get-NPMVersion {
|
||||||
|
|||||||
Reference in New Issue
Block a user