File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ var configuration = Argument<string>("configuration", "Release");
1717
1818var solutions = GetFiles ( "./**/*.sln" ) ;
1919var projects = GetFiles ( "./**/*.csproj" ) . Select ( x => x . GetDirectory ( ) ) ;
20- string buildArtifactsDirectory = "./BuildArtifacts" ;
20+ var buildArtifactsDirectory = "./BuildArtifacts" ;
2121
2222GitVersion gitVersion ;
2323
@@ -292,6 +292,8 @@ public class BuildParameters
292292
293293 public bool IsLocalBuild => _context . BuildSystem ( ) . IsLocalBuild ;
294294
295+ public bool IsPullRequest => _context . BuildSystem ( ) . AppVeyor . Environment . PullRequest . IsPullRequest ;
296+
295297 public string BranchName
296298 {
297299 get
@@ -322,5 +324,6 @@ public class BuildParameters
322324
323325 public bool ShouldPublishNuGet => ! string . IsNullOrWhiteSpace ( NuGetApiKey )
324326 && ! string . IsNullOrWhiteSpace ( NuGetFeed )
325- && ( IsMasterBranch || IsHotFixBranch ) ;
327+ && ( IsMasterBranch || IsHotFixBranch )
328+ && ! IsPullRequest ;
326329}
You can’t perform that action at this time.
0 commit comments