title: Github Action: how to get previous GitHub action run result into my current run
body: <p>I have a GitHub workflow which kickoff when PR is created/synchronize/reopened</p>
  <pre><code>name: CI Deployment
  on:
      pull_request:
      types: [opened, synchronize, reopened]
  
  concurrency: 
      group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
      cancel-in-progress: true
  jobs:
      stageA:
        runs-on: ubuntu-latest
        steps:
        - name: Commit SHA
          run: |
              echo &quot;pass&quot;
      stageB:
        runs-on: ubuntu-latest
        steps:
        - name: Commit SHA
          run: |
              echo &quot;fail&quot;
              exit 1
  </code></pre>
  <p>For the first run suppose stageB is failed. How can I get the result of stageA which is passed so I can skip that build and run only stageB.</p>
  <p>P.S I know GitHub provided an option to <code>re-run failed job</code> from UI but above use case is just an example my real use case is little complicated for which I need result of previous run result so my bash script runs accordingly.</p>