notify chat on nightly success also (#8832)

This commit is contained in:
Prajwol Amatya
2024-04-11 14:12:36 +05:45
committed by GitHub
parent e4a2760179
commit 244ce97920
+7 -5
View File
@@ -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,
},
}