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 98b22f3 commit c3e1f41Copy full SHA for c3e1f41
1 file changed
BuildTools/appveyor-install.ps1
@@ -3,6 +3,8 @@ $ErrorActionPreference = "Stop"
3
$baseCommit = "d779383cb85003d6dabeb976f0845631e07bf463";
4
$baseCommitRev = 1;
5
6
+$masterBranches = @("master", "3.0.x");
7
+
8
$globalAssemblyInfoTemplateFile = "ILSpy/Properties/AssemblyInfo.template.cs";
9
10
$versionParts = @{};
@@ -18,10 +20,10 @@ if ($versionName -ne "null") {
18
20
} else {
19
21
$versionName = "";
22
}
-if ($env:APPVEYOR_REPO_BRANCH -ne 'master') {
- $branch = "-$env:APPVEYOR_REPO_BRANCH";
23
-} else {
+if ($masterBranches -contains $env:APPVEYOR_REPO_BRANCH) {
24
$branch = "";
25
+} else {
26
+ $branch = "-$env:APPVEYOR_REPO_BRANCH";
27
28
if ($env:APPVEYOR_PULL_REQUEST_NUMBER) {
29
$suffix = "-pr$env:APPVEYOR_PULL_REQUEST_NUMBER";
0 commit comments