title: Gitlab CI how to ignore directory using rules syntax?
body: <p>I was able to ignore directory, file changes using the following syntax.</p>
  <pre><code>build:
    script: npm run build
    except:
      changes:
        - &quot;*.md&quot;
        - &quot;src/**/*.ts&quot;
  </code></pre>
  <p>With this configuration <code>build</code> job is going to run except git changes include only <code>*.md</code> extension file or <code>*.ts</code> files in <code>src</code> directory. They're ignored.</p>
  <p>But then they deprecated this <code>only:changes</code>, <code>except:changes</code> syntax and warned to use <code>rules</code> syntax instead. Unfortunately, I cannot seem to find how to ignore directory, file changes using this new syntax.</p>