From e2817731fcad52091d686afb424aebc3a5cfee08 Mon Sep 17 00:00:00 2001 From: Willy Kloucek Date: Fri, 27 Nov 2020 10:56:13 +0100 Subject: [PATCH] fix ci run when docs_only is somewhere in pr message, should only check title --- .drone.star | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.drone.star b/.drone.star index a27925485..16703c532 100644 --- a/.drone.star +++ b/.drone.star @@ -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 ]