From fd55dc529ee3ab5f49b9b00ee6d85e54cb33912f Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Tue, 13 Oct 2020 15:10:03 +0200 Subject: [PATCH] Fix .drone.star syntax --- .drone.star | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.star b/.drone.star index a77cf69862..38573fe085 100644 --- a/.drone.star +++ b/.drone.star @@ -293,9 +293,9 @@ def uploadCoverage(ctx): 'SONAR_TOKEN': { 'from_secret': 'sonar_token', }, - 'SONAR_PULL_REQUEST_BASE': 'master' if ctx.build.event == 'pull_request' else None, - 'SONAR_PULL_REQUEST_BRANCH': ctx.build.source if ctx.build.event == 'pull_request' else None, - 'SONAR_PULL_REQUEST_KEY': ctx.build.ref.replace("refs/pull/", "").split("/")[0] if ctx.build.event == 'pull_request' else None, + 'SONAR_PULL_REQUEST_BASE': '%s' % ('master' if ctx.build.event == 'pull_request' else None), + 'SONAR_PULL_REQUEST_BRANCH': '%s' % (ctx.build.source if ctx.build.event == 'pull_request' else None), + 'SONAR_PULL_REQUEST_KEY': '%s' % (ctx.build.ref.replace("refs/pull/", "").split("/")[0] if ctx.build.event == 'pull_request' else None), }, }, {