From 7a2a939a9b99276f736d48c0527359fec17137d3 Mon Sep 17 00:00:00 2001 From: alankritdabral <95607957+alankritdabral@users.noreply.github.com> Date: Sun, 10 Mar 2024 17:43:01 +0530 Subject: [PATCH] Create a.yml --- .github/workflows/a.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/a.yml 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