title: Run command taking output from previous step on GitHub actions
body: <p>I'm trying to make a GitHub action that builds a Hugo website, deploys it on Pinata and saves the output hash  of this last step to a txt file. I managed to achieve the first and second steps. And, for the third one, I've been trying to do it by running an &quot;echo&quot; command. However, I get this message: &quot;You have an error in your yaml syntax on line 36&quot;</p>
  <p>How do I run the script taking the output from the step identified as &quot;ipfs-pin&quot;?</p>
  <p>Here's my code:</p>
  <pre><code>name: deploy
   on:
    push:
     branches: [ main ]
     pull_request:
     branches: [ main ]
     workflow_dispatch:
  jobs:
   build:
    runs-on: ubuntu-latest
     steps:
     - uses: actions/checkout@master
     - uses: jakejarvis/hugo-build-action@master
       with:
        args: --minify --buildDrafts
     - uses: anantaramdas/ipfs-pinata-deploy-action@v1.6.4
       id: ipfs-pin
        with:
         pin-name: '[my-pin-name]'
         path: './public'
         pinata-api-key: [API Key]
         pinata-secret-api-key: [secret API Key]
         verbose: true
         remove-old: true
    saves-hash-on-file:
     runs-on: ubuntu-latest
      steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v2
      with:
        node-version: '14'
    - run: echo ${{steps.build.ipfs-pin.hash}} &gt; /.github/ipfs-hash.txt
  </code></pre>