Skip to content

Commit 173591a

Browse files
committed
Merge branch 'hotfix/0.28.2'
* hotfix/0.28.2: (#153) Skip signing verification on PR build
2 parents 892c826 + 7060d97 commit 173591a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Chocolatey.Cake.Recipe/Content/sign.cake

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
BuildParameters.Tasks.VerifyPowerShellScriptsTask = Task("Verify-PowerShellScripts")
1717
.WithCriteria(() => BuildParameters.BuildAgentOperatingSystem == PlatformFamily.Windows, "Skipping due to not running on Windows")
18+
.WithCriteria(() => !BuildParameters.IsPullRequest, "Skipping because current build is from a Pull Request")
19+
.WithCriteria(() => BuildParameters.BranchType == BranchType.Master || BuildParameters.BranchType == BranchType.Release || BuildParameters.BranchType == BranchType.HotFix, "Skipping because this is not a releasable branch")
1820
.WithCriteria(() => BuildParameters.ShouldVerifyPowerShellScripts, "Skipping since verifying PowerShell scripts has been disabled")
1921
.Does(() =>
2022
{

0 commit comments

Comments
 (0)