From: Jordan Petridis Date: Mon, 28 Sep 2020 04:24:27 +0000 (+0300) Subject: citempalte: fix string comparitson in rules X-Git-Tag: 1.19.3~497^2~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c066ec01ff57e768dabe899d2152f4b1cbbb290;p=platform%2Fupstream%2Fgstreamer.git citempalte: fix string comparitson in rules When quoting in rules it takes the string as literal and doesn't expand the variable Part-of: --- diff --git a/gitlab/ci_template.yml b/gitlab/ci_template.yml index 5fdf2a2..283ad9f 100644 --- a/gitlab/ci_template.yml +++ b/gitlab/ci_template.yml @@ -331,14 +331,14 @@ manifest: # If the user that triggered the Pipeline is the Merge bot and the branch doesn't match # the upstream branch set, run the pipeline - - if: '$GITLAB_USER_LOGIN == "gstreamer-merge-bot" && $CI_COMMIT_BRANCH != "$GST_UPSTREAM_BRANCH"' + - if: '$GITLAB_USER_LOGIN == "gstreamer-merge-bot" && $CI_COMMIT_BRANCH != $GST_UPSTREAM_BRANCH' # When the user isn't the merge bot, require an explicit action to trigger the pipeline # to avoid wasting CI resources - if: '$GITLAB_USER_LOGIN != "gstreamer-merge-bot"' when: 'manual' # If this matches, it means the pipeline is running against either the main # or a stable branch, so make it manual - - if: '$CI_COMMIT_BRANCH == "$GST_UPSTREAM_BRANCH"' + - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH' when: 'manual' stage: 'preparation'