Access file between steps

name: Share File Workflow
on: [push]

jobs:
  share-file-job:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Create file
        run: echo "Hello, world!" > my-file.txt
          cat ${{ github.workspace }}/my-file.txt

Want to make this site better? Open a PR or help fund hosting costs