mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-14 22:09:26 +00:00
[Ubuntu] Fix version output for vcpkg (#2140)
* change version output for vcpkg * change commit id to short * minor change
This commit is contained in:
committed by
GitHub
parent
cd45b96d7f
commit
f415c1f30f
@@ -133,7 +133,8 @@ function Get-VcpkgVersion {
|
|||||||
$result = Get-CommandResult "vcpkg version"
|
$result = Get-CommandResult "vcpkg version"
|
||||||
$result.Output -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
$result.Output -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||||
$vcpkgVersion = $Matches.version
|
$vcpkgVersion = $Matches.version
|
||||||
return "Vcpkg $vcpkgVersion"
|
$commitId = git -C "/usr/local/share/vcpkg" rev-parse --short HEAD
|
||||||
|
return "Vcpkg $vcpkgVersion (build from master <$commitId>)"
|
||||||
}
|
}
|
||||||
|
|
||||||
function Get-AntVersion {
|
function Get-AntVersion {
|
||||||
|
|||||||
Reference in New Issue
Block a user