diff --git a/templates/gitlab-ci-sonar.yml b/templates/gitlab-ci-sonar.yml index 75edd9809aa5eec694bd3b03266ee088bf8b97fe..df7032fafa9ecd53fc84becf68826515580327e6 100644 --- a/templates/gitlab-ci-sonar.yml +++ b/templates/gitlab-ci-sonar.yml @@ -13,11 +13,11 @@ # program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. # ========================================================================================= -# default workflow rules +# default workflow rules: Merge Request pipelines workflow: rules: - # exclude merge requests - - if: $CI_MERGE_REQUEST_ID + - if: '$CI_MERGE_REQUEST_ID' + - if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS' when: never - when: always