mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +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.Output -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$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 {
|
||||
|
||||
Reference in New Issue
Block a user