From 316a9302c9c8acf54caf7231e69edf89a8f82f96 Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Mon, 9 Oct 2023 00:41:47 -0700 Subject: [PATCH] Build: Fix some branch names not properly creating a PR version string --- build/Build.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/Build.cs b/build/Build.cs index 4112a6e0..e51f35e0 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -157,8 +157,8 @@ partial class Build : NukeBuild { string prString = $"PullRequest{prNumber:D4}"; - VersionString = VersionString.Replace(branchName, prString); - suffix = suffix?.Replace(branchName, prString) ?? ""; + VersionString = VersionString.Replace(gitVersion.EscapedBranchName, prString); + suffix = suffix?.Replace(gitVersion.EscapedBranchName, prString) ?? ""; } appVeyor.UpdateBuildVersion(VersionString);