diff --git a/.github/workflows/a.yml b/.github/workflows/a.yml new file mode 100644 index 0000000000..8328b805e3 --- /dev/null +++ b/.github/workflows/a.yml @@ -0,0 +1,29 @@ +name: File Workflow + +on: + push: + branches: + - main + +jobs: + job_a: + runs-on: ubuntu-latest + steps: + - name: Create Text File + run: echo "This is some text created by Job A" > created_file.txt + - name: Upload Text File + uses: actions/upload-artifact@v2 + with: + name: my-artifact + path: created_file.txt + + job_b: + runs-on: ubuntu-latest + needs: job_a + steps: + - name: Download Text File + uses: actions/download-artifact@v2 + with: + name: my-artifact + - name: Print Text File Contents + run: cat created_file.txt