title: GitHub Actions run on push to all branches
body: <p>It's <a href="https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#example-using-a-list-of-events" rel="noreferrer">easy</a> to run a GitHub Action on any push or pull request:</p>
  <pre class="lang-yaml prettyprint-override"><code># Triggers the workflow on push or pull request events
  on: [push, pull_request]
  </code></pre>
  <p>But what if I want to restrict runs to pull requests opened against specific base refs, while allowing runs on all branches?</p>
  <p>I thought about this:</p>
  <pre class="lang-yaml prettyprint-override"><code>on:
    push:
      branches:
        - &quot;*&quot;
    pull_request:
      branches:
        - &quot;develop&quot;
        - &quot;staging&quot;
  </code></pre>
  <p>But it didn't work. I added this Action to a feature branch and GitHub didn't pick it up.</p>
  <p>Is there anything wrong with my glob? Why doesn't '*' work?</p>