Skip to content

Commit 336acff

Browse files
authored
add final step for branch protection (#2501) (#2532)
* add final step for branch protection * add step for ready release
1 parent 09d95eb commit 336acff

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
@@ -504,7 +504,8 @@ def main(ctx):
504504

505505
is_release_pr = (ctx.build.event == "pull_request" and ctx.build.sender == "openclouders" and "🎉 release" in ctx.build.title.lower())
506506
if is_release_pr:
507-
return licenseCheck(ctx)
507+
return licenseCheck(ctx) + \
508+
notifyMatrixCheckSteps(ctx, getPipelineNames(licenseCheck(ctx)))
508509

509510
build_release_helpers = \
510511
readyReleaseGo()
@@ -575,7 +576,7 @@ def main(ctx):
575576
),
576577
)
577578

578-
pipelines = test_pipelines + build_release_pipelines + notifyMatrix(ctx)
579+
pipelines = test_pipelines + build_release_pipelines + notifyMatrixCheckSteps(ctx, getPipelineNames(testPipelines(ctx)))
579580

580581
pipelineSanityChecks(pipelines)
581582
return savePipelineNumber(ctx) + pipelines
@@ -2205,12 +2206,12 @@ def makeGoGenerate(module):
22052206
},
22062207
]
22072208

2208-
def notifyMatrix(ctx):
2209+
def notifyMatrixCheckSteps(ctx, depends_on):
22092210
result = [{
2210-
"name": "chat-notifications",
2211+
"name": "all-checks-finished",
22112212
"skip_clone": True,
22122213
"runs_on": ["success", "failure"],
2213-
"depends_on": getPipelineNames(testPipelines(ctx)),
2214+
"depends_on": depends_on,
22142215
"steps": [
22152216
{
22162217
"name": "notify-matrix",

0 commit comments

Comments
 (0)