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 e16dd14
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 => string.IsNullOrWhiteSpace(PullRequestBase) || Changes.Any(x => x.StartsWith("Build"));

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

0 comments on commit e16dd14

Please sign in to comment.