fix ci run when docs_only is somewhere in pr message, should only check title

This commit is contained in:
Willy Kloucek
2020-11-27 10:56:13 +01:00
parent 434163b503
commit e2817731fc

View File

@@ -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 ]