mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-18 15:56:47 +00:00
[windows] Fix output for packer 1.7.1 (#3104)
This commit is contained in:
@@ -112,7 +112,10 @@ function Get-OpenSSLVersion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Get-PackerVersion {
|
function Get-PackerVersion {
|
||||||
return "Packer $(packer --version)"
|
# Packer 1.7.1 has a bug and outputs version to stderr instead of stdout https://github.com/hashicorp/packer/issues/10855
|
||||||
|
($(cmd /c "packer --version 2>&1") | Out-String) -match "(?<version>(\d+.){2}\d+)" | Out-Null
|
||||||
|
$packerVersion = $Matches.Version
|
||||||
|
return "Packer $packerVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
function Get-PulumiVersion {
|
function Get-PulumiVersion {
|
||||||
|
|||||||
Reference in New Issue
Block a user