Skip to content

Commit 7234115

Browse files
authored
add final step for branch protection (#2501)
* add final step for branch protection * add step for ready release
1 parent 398cd29 commit 7234115

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.woodpecker.star

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@ def main(ctx):
498498
is_release_pr = (ctx.build.event == "pull_request" and ctx.build.sender == "openclouders" and "🎉 release" in ctx.build.title.lower())
499499
if is_release_pr:
500500
return checkVersionPlaceholder() + \
501-
licenseCheck(ctx)
501+
licenseCheck(ctx) + \
502+
notifyMatrixCheckSteps(ctx, getPipelineNames(licenseCheck(ctx) + checkVersionPlaceholder()))
502503

503504
build_release_helpers = \
504505
readyReleaseGo()
@@ -569,7 +570,7 @@ def main(ctx):
569570
),
570571
)
571572

572-
pipelines = test_pipelines + build_release_pipelines + genDocsPr(ctx) + notifyMatrix(ctx)
573+
pipelines = test_pipelines + build_release_pipelines + genDocsPr(ctx) + notifyMatrixCheckSteps(ctx, getPipelineNames(testPipelines(ctx)))
573574

574575
pipelineSanityChecks(pipelines)
575576
return savePipelineNumber(ctx) + pipelines
@@ -2283,12 +2284,12 @@ def genDocsPr(ctx):
22832284
],
22842285
}]
22852286

2286-
def notifyMatrix(ctx):
2287+
def notifyMatrixCheckSteps(ctx, depends_on):
22872288
result = [{
2288-
"name": "chat-notifications",
2289+
"name": "all-checks-finished",
22892290
"skip_clone": True,
22902291
"runs_on": ["success", "failure"],
2291-
"depends_on": getPipelineNames(testPipelines(ctx)),
2292+
"depends_on": depends_on,
22922293
"steps": [
22932294
{
22942295
"name": "notify-matrix",

0 commit comments

Comments
 (0)