title: Using output from a previous job in a new one in a GitHub Action
body: <p>For (mainly) pedagogical reasons, I'm trying to run this workflow in GitHub actions:</p>
  
  <pre><code>name: "We  Perl"
  on:
    issues:
      types: [opened, edited, milestoned]
  
  jobs:
    seasonal_greetings:
      runs-on: windows-latest
      steps:
        - name: Maybe greet
          id: maybe-greet
          env:
            HEY: "Hey you!"
            GREETING: "Merry Xmas to you too!"
            BODY: ${{ github.event.issue.body }}
          run: |
            $output=(perl -e 'print ($ENV{BODY} =~ /Merry/)?$ENV{GREETING}:$ENV{HEY};')
            Write-Output "::set-output name=GREET::$output"
    produce_comment:
      name: Respond to issue
      runs-on: ubuntu-latest
      steps:
        - name: Dump job context
          env:
            JOB_CONTEXT: ${{ jobs.maybe-greet.steps.id }}
          run: echo "$JOB_CONTEXT"
  </code></pre>
  
  <p>I need two different jobs, since they use different context (operating systems), but I need to get the output of a step in the first job to the second job. I am trying with several combinations of the <code>jobs</code> context as found <a href="https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idif" rel="noreferrer">here</a> but there does not seem to be any way to do that. Apparently, <code>jobs</code> is just the name of a YAML variable that does not really have a context, and the context <code>job</code> contains just the success or failure. Any idea?</p>