title: If or condition in Github Actions
body: <p>I've been trying to build a CICD pipeline in Github actions and we're not able to process if and or conditions in the same. below is the example of our code snippet,</p>
  <pre class="lang-yaml prettyprint-override"><code>    name: Build Non prod
      needs: [rules]    
      if: ${{ (needs.rules.outputs.branch_name != 'production') || (needs.rules.outputs.branch_name != 'staging') }}
      steps:
        - name: Checkout
          uses: actions/checkout@v2
  </code></pre>
  <p>So this task should not run in <code>production</code> and <code>staging</code> branch, but when actions runs in <code>staging</code> branch, this job is also getting triggered along with other jobs which are not meant for <code>staging</code> environment.</p>
  <p>Is there any way we can have <code>if</code> and <code>or</code> condition ?</p>
  <p>Update:</p>
  <p>The condition will not work, below updated condition will work.</p>
  <pre class="lang-yaml prettyprint-override"><code>if: ${{ (needs.rules.outputs.branch_name != 'production') &amp;&amp; (needs.rules.outputs.branch_name != 'staging') }}
  </code></pre>