Skip to content

Commit

Permalink
Create dev release when merging into version3 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
CharliePoole committed Jun 30, 2022
1 parent 9b1284d commit 7dc0f03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cake/versioning.cake
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ public class BuildVersion

string branchName = _gitVersion.BranchName;

// Treat version3 branch as an alternate "main"
if (branchName == "version3")
label = "dev";

// We don't currently use this pattern, but check in case we do later.
if (branchName.StartsWith("feature/"))
branchName = branchName.Substring(8);
Expand Down

0 comments on commit 7dc0f03

Please sign in to comment.