Skip to content

Commit 3979eb9

Browse files
committed
fix release branch detection.
1 parent d8bab6a commit 3979eb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parameters.cake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class Parameters
5050
// CONFIGURATION
5151
MainRepo = "https://github.com/AvaloniaUI/Avalonia";
5252
MasterBranch = "master";
53-
ReleaseBranchPrefix = "release/";
53+
ReleaseBranchPrefix = "refs/heads/release/";
5454
ReleaseConfiguration = "Release";
5555
MSBuildSolution = "./dirs.proj";
5656

@@ -64,7 +64,7 @@ public class Parameters
6464
IsPullRequest = buildSystem.AppVeyor.Environment.PullRequest.IsPullRequest;
6565
IsMainRepo = StringComparer.OrdinalIgnoreCase.Equals(MainRepo, context.EnvironmentVariable("BUILD_REPOSITORY_URI"));
6666
IsMasterBranch = StringComparer.OrdinalIgnoreCase.Equals(MasterBranch, context.EnvironmentVariable("BUILD_SOURCEBRANCHNAME"));
67-
IsReleaseBranch = context.EnvironmentVariable("BUILD_SOURCEBRANCHNAME").ToLower().StartsWith(ReleaseBranchPrefix.ToLower());
67+
IsReleaseBranch = context.EnvironmentVariable("BUILD_SOURCEBRANCH").ToLower().StartsWith(ReleaseBranchPrefix.ToLower());
6868
IsTagged = buildSystem.AppVeyor.Environment.Repository.Tag.IsTag
6969
&& !string.IsNullOrWhiteSpace(buildSystem.AppVeyor.Environment.Repository.Tag.Name);
7070
IsReleasable = StringComparer.OrdinalIgnoreCase.Equals(ReleaseConfiguration, Configuration);

0 commit comments

Comments
 (0)