diff --git a/.drone.star b/.drone.star index e20d51ef052..094a0fa877c 100644 --- a/.drone.star +++ b/.drone.star @@ -289,7 +289,7 @@ def main(ctx): # always append notification step pipelines.append( pipelineDependsOn( - notify(), + notify(ctx), pipelines, ), ) @@ -1956,7 +1956,11 @@ def makeGoGenerate(module): }, ] -def notify(): +def notify(ctx): + status = ["failure"] + if ctx.build.event == "cron": + status.append("success") + return { "kind": "pipeline", "type": "docker", @@ -1983,9 +1987,7 @@ def notify(): "refs/heads/release*", "refs/tags/**", ], - "status": [ - "failure", - ], + "status": status, }, }