title: Running Github Action When PR is raised from specific branch name to specific branch name?
body: <p>We have a public SDK repo for which I am writing multiple github workflows. One such workflow includes Generating a Release SDK(minified, encoded with private keys) when a PR is raised from <code>develop</code> to <code>master</code>. another such action is to run static code checks when a PR is raised from <code>task/**</code> branch to <code>develop</code> branch.
  I tried to use the following workflow:</p>
  <pre class="lang-yaml prettyprint-override"><code>name: validate PR raised from task/** branched to develop branch
  on:
    pull_request:
      branches: [ task/** ]
  
    pull_request_target:
      branches: [ develop ]
    ...
  
  </code></pre>
  <p>this code is pushed to develop branch. but this triggers the workflow twice everytime a PR is raised or modified, indicating that the action is running with 'OR' configuration. I would like to run this workflow only once in 'AND' condition (i.e when the source branch is <code>task/**</code> AND target branch is <code>develop</code>)</p>
  <p>For my first usecase, it is very important that only internal devs can trigger the generate build. so is that possible to run the actions for specific target and source branch?</p>