notify chat on nightly success also (#8852)

This commit is contained in:
Prajwol Amatya
2024-04-15 13:05:18 +05:45
committed by GitHub
parent 171a4a0c85
commit 76591e0ea3
+7 -5
View File
@@ -280,7 +280,7 @@ def main(ctx):
# always append notification step
pipelines.append(
pipelineDependsOn(
notify(),
notify(ctx),
pipelines,
),
)
@@ -1908,7 +1908,11 @@ def makeGoGenerate(module):
},
]
def notify():
def notify(ctx):
status = ["failure"]
if ctx.build.event == "cron":
status.append("success")
return {
"kind": "pipeline",
"type": "docker",
@@ -1935,9 +1939,7 @@ def notify():
"refs/heads/release*",
"refs/tags/**",
],
"status": [
"failure",
],
"status": status,
},
}