Skip to content

Commit

Permalink
Force complete build pipeline when modifying the build itself
Browse files Browse the repository at this point in the history
  • Loading branch information
IT-VBFK committed Feb 2, 2023
1 parent 363408e commit 13c3a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Build/Build.cs
Expand Up @@ -308,7 +308,7 @@ class Build : NukeBuild
Tree TargetBranch => Repository.Branches[PullRequestBase].Tip.Tree;
Tree SourceBranch => Repository.Branches[Repository.Head.FriendlyName].Tip.Tree;

bool RunAllTargets => string.IsNullOrWhiteSpace(PullRequestBase);
bool RunAllTargets => Changes.Any(x => x.StartsWith("Build")) || string.IsNullOrWhiteSpace(PullRequestBase);

bool IsTag => BranchSpec != null && BranchSpec.Contains("refs/tags", StringComparison.InvariantCultureIgnoreCase);
}

0 comments on commit 13c3a9b

Please sign in to comment.