From 313330c235c0443bee66b8061ed45709adaa480d Mon Sep 17 00:00:00 2001 From: IT-VBFK <49762557+IT-VBFK@users.noreply.github.com> Date: Sun, 8 Jan 2023 11:27:02 +0100 Subject: [PATCH] Fix build breaking on non PR branch --- Build/Build.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Build/Build.cs b/Build/Build.cs index 41980e1044..bb27eb1510 100644 --- a/Build/Build.cs +++ b/Build/Build.cs @@ -299,7 +299,8 @@ from framework in supportedFrameworks Repository Repository => new Repository(GitRepository.LocalDirectory); Tree TargetBranch => Repository.Branches[PullRequestBase].Tip.Tree; Tree SourceBranch => Repository.Branches[Repository.Head.FriendlyName].Tip.Tree; - bool RunAllTargets => PullRequestBase == default; + + bool RunAllTargets => string.IsNullOrWhiteSpace(PullRequestBase); bool IsTag => BranchSpec != null && BranchSpec.Contains("refs/tags", StringComparison.InvariantCultureIgnoreCase); }