title: how to exclude an exit code in github actions workflow result status?
body: <p>I have a work flow which in one of its steps, if the commands finish with exit code 1 (failure), i want to run next command/job (fix the problem which caused previous command failure), but i don't want that exit code 1 affect on a workflow result status.<br />
  in this situation, if i have exit code 1, even if i fix the problem, the result status will be <code>failure</code>, but i want if the second command fixed the problem, the result status be <code>succeed</code>.<br />
  is it possible?<br />
  <br />
  here is my <code>workflow.yml</code>:<br />
  <br />
  if the job <code>build</code> with command <code>run: black --check .</code> have exit code 1, i want to run job <code>reformat</code> to fix the problem and push that in repository. the second job works fine, but final result label is failure!!</p>
  <pre><code>name: autoblack
  on: [pull_request, push]
  jobs:
    build:
      runs-on: ubuntu-latest
      steps:
        - name: Set up Python 3.8
          uses: actions/setup-python@v2.2.2
          with:
            python-version: 3.8
        - name: Install Black
          run: pip3 install git+git://github.com/psf/black
          
        - name: Run black --check .
          run: black --check .
    
    reformat:
      runs-on: ubuntu-latest
      needs: [build]
      if: always() &amp;&amp; (needs.build.result == 'failure')
      steps:
        - uses: actions/checkout@v2.3.4
        - name: Set up Python 3.8
          uses: actions/setup-python@v2.2.2
          with:
            python-version: 3.8
        - name: Install Black
          run: pip3 install git+git://github.com/psf/black
        - name: If needed, commit black changes to the pull request
          env:
            NEEDS_CONTEXT: ${{ toJSON(needs) }}
          run: |
            black --fast .
            git config --global user.name 'autoblack'
            git config --global user.email 'signorrayan@users.noreply.github.com'
            git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
            git checkout $GITHUB_HEAD_REF
            echo &quot;$NEEDS_CONTEXT&quot;
            git commit -am &quot;fixup: Format Python code with Black&quot;
            git push
            echo &quot;$NEEDS_CONTEXT&quot;
  </code></pre>