File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
buildSrc/src/main/java/org/zaproxy/gradle Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -380,6 +380,8 @@ val handleMainRelease by tasks.registering(HandleMainRelease::class) {
380380
381381 eventType.set(" release-main-docker" )
382382 eventTypeNightly.set(" release-nightly-docker" )
383+ eventTypeWeekly.set(" release-weekly" )
384+ clientPayloadWeekly.set(mapOf (" publish" to true ))
383385}
384386
385387val flathubRepo = GitHubRepo (" flathub" , " org.zaproxy.ZAP" , file(" $rootDir /../org.zaproxy.ZAP" ))
Original file line number Diff line number Diff line change 2020package org .zaproxy .gradle ;
2121
2222import java .util .Map ;
23+ import org .gradle .api .provider .MapProperty ;
2324import org .gradle .api .provider .Property ;
2425import org .gradle .api .tasks .Input ;
2526
@@ -33,9 +34,16 @@ public abstract class HandleMainRelease extends MainReleaseRepositoryDispatch {
3334 @ Input
3435 public abstract Property <String > getEventTypeNightly ();
3536
37+ @ Input
38+ public abstract Property <String > getEventTypeWeekly ();
39+
40+ @ Input
41+ public abstract MapProperty <String , Object > getClientPayloadWeekly ();
42+
3643 @ Override
3744 protected void sendDispatch () {
3845 super .sendDispatch ();
3946 sendRepositoryDispatch (getEventTypeNightly ().get (), Map .of ());
47+ sendRepositoryDispatch (getEventTypeWeekly ().get (), getClientPayloadWeekly ().get ());
4048 }
4149}
You can’t perform that action at this time.
0 commit comments