Skip to content

Commit

Permalink
Fix build breaking on non PR branch
Browse files Browse the repository at this point in the history
  • Loading branch information
IT-VBFK committed Jan 8, 2023
1 parent c56b55b commit 1cf686d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Build/Build.cs
Expand Up @@ -299,7 +299,8 @@ class Build : NukeBuild
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);
}

0 comments on commit 1cf686d

Please sign in to comment.