mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-05 03:40:01 -06:00
fix ci run when docs_only is somewhere in pr message, should only check title
This commit is contained in:
@@ -153,7 +153,12 @@ def main(ctx):
|
||||
|
||||
pipelines = before + [ notify_pipeline ]
|
||||
|
||||
elif '[docs-only]' in (ctx.build.title + ctx.build.message):
|
||||
elif \
|
||||
(ctx.build.event == "pull" and '[docs-only]' in ctx.build.title) \
|
||||
or \
|
||||
(ctx.build.event != "pull" and '[docs-only]' in (ctx.build.title + ctx.build.message)):
|
||||
# [docs-only] is not taken from PR messages, but from commit messages
|
||||
|
||||
docs_pipeline = docs(ctx)
|
||||
docs_pipeline['depends_on'] = []
|
||||
docs_pipelines = [ docs_pipeline ]
|
||||
|
||||
Reference in New Issue
Block a user