title: Run deployment if commit message includes a string?
body: <p>I am trying to setup my CI so it would perform deployment jobs if commit message includes specific string, which in my case is:</p>
  
  <pre><code>chore(release)
  </code></pre>
  
  <p>Currently my configuration looks like this:</p>
  
  <pre class="lang-yaml prettyprint-override"><code>deploy:
    # deploy to github release
    - provider: releases
      api_key: $GIT_TOKEN
      file_glob: true
      file: "*.vsix"
      skip_cleanup: true
      on:
        tags: false
        all_branches: true
        condition: "$TRAVIS_COMMIT_MESSAGE =~ *release*$"
  </code></pre>
  
  <p>As you can see in this instance I just try to match word "release", but it still doesn't work. Am I doing something wrong? Or maybe it's not possible to match partial string?</p>
  
  <p>My commit message upon testing is: </p>
  
  <pre><code>chore(release): version 1.1.6
  </code></pre>
  
  <p>and I run it on master branch (not tags).</p>
  
  <p>Logs give me this message:</p>
  
  <pre><code>Skipping a deployment with the releases provider because a custom condition was not met
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>I have also tried something like this:</p>
  
  <pre><code>deploy:
    # deploy to github release
    - provider: releases
      if: commit_message =~ /^chore\(release\)/
      api_key: $GIT_TOKEN
      file_glob: true
      file: "*.vsix"
      skip_cleanup: true
      on:
        branch: master
  </code></pre>
  
  <p>Travis logs this out:</p>
  
  <blockquote>
    <p>/home/travis/.travis/job_stages: line 565: expected <code>)'
    /home/travis/.travis/job_stages: line 565: syntax error near</code>=~'
    /home/travis/.travis/job_stages: line 565: `  if [[ ($TRAVIS_BRANCH =
    commit_message =~ /^chore(release)/) ]]; then'</p>
  </blockquote>