title: How to access step output within github-script action
body: <p>I would like to use the output of a previous step in a <code>github-script</code> action. I tried:</p>
  <pre><code>    - name: Print step result
        uses: actions/github-script@v6
        with:
          script: |
            core.info(`Step result is: ${steps.captureStatus.outputs.response}`)
  </code></pre>
  <p>This gives me an error that <code>steps</code> is not defined.</p>
  <p>The preceeding action is:</p>
  <pre><code>    - name: Capture status
        id: captureStatus
        uses: fjogeleit/http-request-action@v1
        with:
          method: GET
          url: &quot;http://localhost:8091/iaf/api/server/health&quot;
  </code></pre>
  <p>I read <a href="https://stackoverflow.com/questions/66358647/retrieve-the-output-error-from-a-github-actions-step">Retrieve the output error from a github actions step</a>, but from the answers on that question I could not find the answer of the present question.</p>
  <p>Any ideas?</p>