From 49c241af930a730a350a83a55eb26df9b6cedf9c Mon Sep 17 00:00:00 2001 From: Prajwol Amatya Date: Tue, 16 Apr 2024 09:55:20 +0545 Subject: [PATCH 1/2] send nightly notification to builds channel --- .drone.star | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.drone.star b/.drone.star index 24d7f35fb..bb1114b87 100644 --- a/.drone.star +++ b/.drone.star @@ -144,6 +144,7 @@ config = { }, "rocketchat": { "channel": "infinitescale", + "channel_builds": "builds", "from_secret": "rocketchat_talk_webhook", }, "binaryReleases": { @@ -1911,8 +1912,10 @@ def makeGoGenerate(module): def notify(ctx): status = ["failure"] + channel = config["rocketchat"]["channel"] if ctx.build.event == "cron": status.append("success") + channel = config["rocketchat"]["channel_builds"] return { "kind": "pipeline", @@ -1929,7 +1932,7 @@ def notify(ctx): "webhook": { "from_secret": config["rocketchat"]["from_secret"], }, - "channel": config["rocketchat"]["channel"], + "channel": channel, }, }, ], From 46ea8a0bc6fb486598e1c5a59dfbcc1ecccef649 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 16 Apr 2024 18:35:54 +0545 Subject: [PATCH 2/2] rename channel_cron in drone script --- .drone.star | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.star b/.drone.star index bb1114b87..1e034e65e 100644 --- a/.drone.star +++ b/.drone.star @@ -144,7 +144,7 @@ config = { }, "rocketchat": { "channel": "infinitescale", - "channel_builds": "builds", + "channel_cron": "builds", "from_secret": "rocketchat_talk_webhook", }, "binaryReleases": { @@ -1915,7 +1915,7 @@ def notify(ctx): channel = config["rocketchat"]["channel"] if ctx.build.event == "cron": status.append("success") - channel = config["rocketchat"]["channel_builds"] + channel = config["rocketchat"]["channel_cron"] return { "kind": "pipeline",