Skip to content

Commit

Permalink
Create a.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alankritdabral authored Mar 10, 2024
1 parent 2268b32 commit 7a2a939
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/a.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7a2a939

Please sign in to comment.