Skip to content

Commit 2cc0565

Browse files
webwarrior-wsxperiandri
authored andcommitted
fix(ci): only push Nuget packages from the master branch
To avoid running this step in situations like opening PR from main repository.
1 parent 2b5b1ef commit 2cc0565

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.fsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ Target.create "Push" (fun _ ->
227227
| Some key ->
228228
if isTag then
229229
push key
230+
elif getBuildParam "GITHUB_REF_NAME" <> Some "master" then
231+
Console.WriteLine "Not a push to master branch, skipping..."
230232
else
231233
match getBuildParam "GITHUB_SHA" with
232234
| None ->

0 commit comments

Comments
 (0)