Skip to content

Commit 795f722

Browse files
committed
Update Build.cs
1 parent 874ce93 commit 795f722

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/build/Build.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ class Build : NukeBuild
8787
string GithubNugetPAT;
8888

8989
Target Publish => _ => _
90-
.OnlyWhenStatic(() => GitRepository.IsOnMainBranch())
90+
.OnlyWhenStatic(() =>
91+
{
92+
Log.Information("We're currently on {Branch}", GitRepository.Branch);
93+
return GitRepository.IsOnMainBranch();
94+
})
9195
.DependsOn(Pack)
9296
.Executes(() =>
9397
{

0 commit comments

Comments
 (0)