# It consumes an artifact produced by the First Workflow

on: workflow_run
jobs:
  my-second-job:
    runs-on: ubuntu-latest
    steps:
      - name: download pr artifact
        uses: dawidd6/action-download-artifact@v2
        with:
            workflow: ${{github.event.workflow_run.workflow_id}}
            run_id: ${{github.event.workflow_run.id}}
            name: artifact

      - id: version 
        run: |
          echo "version=10" >> "${GITHUB_OUTPUT}"
          ls
      - run: echo ${{ steps.version.outputs.version }} 

