From bb8c78f50b8d768ab970d6de42cc5672f01c5f10 Mon Sep 17 00:00:00 2001 From: Subham0464 Date: Fri, 23 Jan 2026 16:18:24 +0530 Subject: [PATCH] Adding new yaml for practice --- .github/workflows/my-practice--artifacts.yaml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/my-practice--artifacts.yaml diff --git a/.github/workflows/my-practice--artifacts.yaml b/.github/workflows/my-practice--artifacts.yaml new file mode 100644 index 00000000..63549160 --- /dev/null +++ b/.github/workflows/my-practice--artifacts.yaml @@ -0,0 +1,31 @@ +name: Practice Artifacts +on: + workflow_dispatch: + +jobs: + produce-artifact: + name: Produce Artifacts + runs-on: ubuntu-24.04 + steps: + - name: create artifact file + run: | + echo "Yo, this is me practicing writing github actiosn yo" > artifacts.txt + echo "This file was generated by 'Produce Articats'" >> artifacts.txt + - name: upload artifact + uses: actions/upload-artifact@v4 + with: + name: my_artifacts + path: artifacts.txt + + consume-artifact: + name: Consume Artifacts + runs-on: ubuntu-24.04 + needs: produce-artifact + steps: + - name: download artifact + uses: actions/download-artifact@v4 + with: + name: my_artifact + + - name: Print artifact + run: cat artifact.txt