We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0cfa5b commit c47b6f5Copy full SHA for c47b6f5
Build.ps1
@@ -4,7 +4,7 @@ if(Test-Path .\artifacts) { Remove-Item .\artifacts -Force -Recurse }
4
5
& dotnet restore --no-cache
6
7
-$branch = $(git symbolic-ref --short -q HEAD)
+$branch = @{ $true = $env:APPVEYOR_REPO_BRANCH; $false = $(git symbolic-ref --short -q HEAD) }[$env:APPVEYOR_REPO_BRANCH -ne $NULL];
8
$revision = @{ $true = $env:APPVEYOR_BUILD_NUMBER; $false = "local" }[$env:APPVEYOR_BUILD_NUMBER -ne $NULL];
9
$suffix = @{ $true = ""; $false = "$branch-$revision"}[$branch -eq "master" -and $revision -ne "local"]
10
0 commit comments