We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
main
1 parent c8b9427 commit 3d0fbd2Copy full SHA for 3d0fbd2
Build.ps1
@@ -11,7 +11,7 @@ if(Test-Path .\artifacts) {
11
12
$branch = @{ $true = $env:APPVEYOR_REPO_BRANCH; $false = $(git symbolic-ref --short -q HEAD) }[$env:APPVEYOR_REPO_BRANCH -ne $NULL];
13
$revision = @{ $true = "{0:00000}" -f [convert]::ToInt32("0" + $env:APPVEYOR_BUILD_NUMBER, 10); $false = "local" }[$env:APPVEYOR_BUILD_NUMBER -ne $NULL];
14
-$suffix = @{ $true = ""; $false = "$($branch.Substring(0, [math]::Min(10,$branch.Length)))-$revision"}[$branch -eq "master" -and $revision -ne "local"]
+$suffix = @{ $true = ""; $false = "$($branch.Substring(0, [math]::Min(10,$branch.Length)))-$revision"}[$branch -eq "main" -and $revision -ne "local"]
15
16
echo "build: Version suffix is $suffix"
17
0 commit comments