title: GitHub Actions - Ignore or exclude Dependabot Pull Requests
body: <p>I have a repository with <strong>Dependabot</strong> in it, that opens PR on version updates, etc which I would like to keep.</p>
  <p>In the same repository, I have a GitHub Action for Pull Requests for my team to use.</p>
  <p>My issue is that the Dependabot keeps triggering the Pull Request action no matter what I tried.</p>
  <p>My PR action have to be triggered on staging branch pull requests, like so:</p>
  <pre><code>name: Pull Request
  on:
    pull_request:
      branches:
        - staging
  </code></pre>
  <p>So I can't use both on pull_reuqest AND branches_ignore - as stated in the <a href="https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpull_requestpull_request_targetbranchesbranches-ignore" rel="noreferrer">documentation</a></p>
  <p>Workflow attempts I have tried so far that unfortunately haven't worked:</p>
  <pre><code>name: Pull Request
  on:
    pull_request:
      branches:
        - staging
        - '!dependabot/**'
  </code></pre>
  <hr />
  <pre><code>name: Pull Request
  on:
    pull_request:
      branches:
        - staging
  
  jobs:
    Build:
      if: github.actor!= 'dependabot-preview[bot]'
      name: Build
      runs-on: ubuntu-latest
      steps:
      - name: Check out code
        uses: actions/checkout@v2
  </code></pre>
  <hr />
  <p>I have also tried excluding the Dependabot user like so:</p>
  <pre><code>if: github.actor!= 'depbot'
  </code></pre>
  <p>Would love some insights or answers on how you have dealt with this issue.</p>
  <p>Thanks!</p>