title: Combine gitlab ci rules if to only trigger a job when a push or merge is made to master branch
body: <p>I`m new to Gitlab-CI and would like to trigger a script in Gitlab CI if changes are made to files in a defined folder and there has either been a push to the master branch OR some other branch has been merged into master. After reading the docs I think this could work:</p>
  <pre><code>    trigger_something:
        rules:
          - changes:
            - path2importantstuff/*
          - if: '$CI_PIPELINE_SOURCE == &quot;merge_request_event&quot; &amp;&amp; $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == &quot;master&quot;'
          - if: '$CI_PIPELINE_SOURCE == &quot;push&quot; &amp;&amp; $CI_COMMIT_BRANCH == &quot;master&quot;'
        script:
          - curl --data-urlencode &quot;argString=-ExecutionMode 'Real Run'&quot; 127.0.0.1:2220/api/11/job/47c7c848/run
  </code></pre>
  <p>Is it possible to combine if conditions like this? Are they combined with a logical OR? Can something be improved?</p>
  <p>Thank you - all the best,
  Sacha</p>