Skip to content

Commit c47b6f5

Browse files
committed
Correct branch detection in build script
1 parent f0cfa5b commit c47b6f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if(Test-Path .\artifacts) { Remove-Item .\artifacts -Force -Recurse }
44

55
& dotnet restore --no-cache
66

7-
$branch = $(git symbolic-ref --short -q HEAD)
7+
$branch = @{ $true = $env:APPVEYOR_REPO_BRANCH; $false = $(git symbolic-ref --short -q HEAD) }[$env:APPVEYOR_REPO_BRANCH -ne $NULL];
88
$revision = @{ $true = $env:APPVEYOR_BUILD_NUMBER; $false = "local" }[$env:APPVEYOR_BUILD_NUMBER -ne $NULL];
99
$suffix = @{ $true = ""; $false = "$branch-$revision"}[$branch -eq "master" -and $revision -ne "local"]
1010

0 commit comments

Comments
 (0)