Build: Fix some branch names not properly creating a PR version string

This commit is contained in:
Alex Barney 2023-10-09 00:41:47 -07:00
parent e7b642380c
commit 316a9302c9

View file

@ -157,8 +157,8 @@ partial class Build : NukeBuild
{ {
string prString = $"PullRequest{prNumber:D4}"; string prString = $"PullRequest{prNumber:D4}";
VersionString = VersionString.Replace(branchName, prString); VersionString = VersionString.Replace(gitVersion.EscapedBranchName, prString);
suffix = suffix?.Replace(branchName, prString) ?? ""; suffix = suffix?.Replace(gitVersion.EscapedBranchName, prString) ?? "";
} }
appVeyor.UpdateBuildVersion(VersionString); appVeyor.UpdateBuildVersion(VersionString);