From 517b28d70a73d4bf5806f94fa23dc8a91f873c5b 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 618c7d0407..d596bf9d49 100644 --- a/.drone.star +++ b/.drone.star @@ -153,6 +153,7 @@ config = { }, "rocketchat": { "channel": "infinitescale", + "channel_builds": "builds", "from_secret": "rocketchat_talk_webhook", }, "binaryReleases": { @@ -1959,8 +1960,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", @@ -1977,7 +1980,7 @@ def notify(ctx): "webhook": { "from_secret": config["rocketchat"]["from_secret"], }, - "channel": config["rocketchat"]["channel"], + "channel": channel, }, }, ], From c145c2e2338b9252dbc636f8625f06e23da8138f 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 d596bf9d49..8a1b363b50 100644 --- a/.drone.star +++ b/.drone.star @@ -153,7 +153,7 @@ config = { }, "rocketchat": { "channel": "infinitescale", - "channel_builds": "builds", + "channel_cron": "builds", "from_secret": "rocketchat_talk_webhook", }, "binaryReleases": { @@ -1963,7 +1963,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",