title: GitLab-CI: run job only when all conditions are met
body: <p>In <a href="https://docs.gitlab.com/ce/ci/yaml/README.html#only-and-except-simplified" rel="noreferrer">GitLab-CI document</a>, I read the following contents:</p>
  
  <blockquote>
    <p>In this example, job will run only for refs that are tagged, <strong>or</strong> if a build is explicitly requested via an API trigger <strong>or</strong> a Pipeline Schedule:</p>
  
  <pre><code>job:
    # use special keywords
    only:
      - tags
      - triggers
      - schedules
  </code></pre>
  </blockquote>
  
  <p>I noticed the document uses <strong>or</strong> instead of <strong>and</strong>, which means the job is run when either one condition is met. But what if I want to configure a job to only run when all conditions are met, for instance, in a Pipeline Schedule <strong>and</strong> on master branch?</p>