Updating pulumictl usage in windows build

This commit is contained in:
pulumi-bot 2021-03-10 22:47:50 +00:00
parent 63857ac72d
commit 555dc2c3cf

View file

@ -6,7 +6,7 @@ $Root=Join-Path $PSScriptRoot ".."
$PublishDir=New-Item -ItemType Directory -Path "$env:TEMP\$([System.IO.Path]::GetRandomFileName())"
$GitHash=$(git rev-parse HEAD)
$PublishFile="$(Split-Path -Parent -Path $PublishDir)\$GitHash.zip"
$Version = $( & "pulumictl get version --language python")
$Version = $(pulumictl get version)
$Branch = $(if (Test-Path env:APPVEYOR_REPO_BRANCH) { $env:APPVEYOR_REPO_BRANCH } else { $(git rev-parse --abbrev-ref HEAD) })
$PublishTargets = @($GitHash, $Version, $Branch)