add final step for branch protection (#2501)

* add final step for branch protection

* add step for ready release
This commit is contained in:
Viktor Scharf
2026-03-23 09:42:17 +01:00
committed by GitHub
parent 398cd29fe6
commit 7234115ae4

View File

@@ -498,7 +498,8 @@ def main(ctx):
is_release_pr = (ctx.build.event == "pull_request" and ctx.build.sender == "openclouders" and "🎉 release" in ctx.build.title.lower())
if is_release_pr:
return checkVersionPlaceholder() + \
licenseCheck(ctx)
licenseCheck(ctx) + \
notifyMatrixCheckSteps(ctx, getPipelineNames(licenseCheck(ctx) + checkVersionPlaceholder()))
build_release_helpers = \
readyReleaseGo()
@@ -569,7 +570,7 @@ def main(ctx):
),
)
pipelines = test_pipelines + build_release_pipelines + genDocsPr(ctx) + notifyMatrix(ctx)
pipelines = test_pipelines + build_release_pipelines + genDocsPr(ctx) + notifyMatrixCheckSteps(ctx, getPipelineNames(testPipelines(ctx)))
pipelineSanityChecks(pipelines)
return savePipelineNumber(ctx) + pipelines
@@ -2283,12 +2284,12 @@ def genDocsPr(ctx):
],
}]
def notifyMatrix(ctx):
def notifyMatrixCheckSteps(ctx, depends_on):
result = [{
"name": "chat-notifications",
"name": "all-checks-finished",
"skip_clone": True,
"runs_on": ["success", "failure"],
"depends_on": getPipelineNames(testPipelines(ctx)),
"depends_on": depends_on,
"steps": [
{
"name": "notify-matrix",