From 517b28d70a73d4bf5806f94fa23dc8a91f873c5b Mon Sep 17 00:00:00 2001 From: Prajwol Amatya Date: Tue, 16 Apr 2024 09:55:20 +0545 Subject: [PATCH] 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, }, }, ],