We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 874ce93 commit 795f722Copy full SHA for 795f722
src/build/Build.cs
@@ -87,7 +87,11 @@ class Build : NukeBuild
87
string GithubNugetPAT;
88
89
Target Publish => _ => _
90
- .OnlyWhenStatic(() => GitRepository.IsOnMainBranch())
+ .OnlyWhenStatic(() =>
91
+ {
92
+ Log.Information("We're currently on {Branch}", GitRepository.Branch);
93
+ return GitRepository.IsOnMainBranch();
94
+ })
95
.DependsOn(Pack)
96
.Executes(() =>
97
{
0 commit comments