Skip to content

Commit

Permalink
chore: update needs workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 21, 2022
1 parent 5dac89b commit b1ccb9c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/needs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ jobs:
- uses: actions/checkout@master
- run: echo "job 1" > job1.md
- run: ls -al

- uses: actions/upload-artifact@master
with:
name: my-artifact
path: job1.md

job2:
needs: job1
Expand All @@ -19,11 +24,21 @@ jobs:
- uses: actions/checkout@master
- run: echo "job 2" > job2.md
- run: ls -al

- uses: actions/download-artifact@master
with:
name: my-artifact
path: job2.md


job3:
needs: [job1, job2]
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- run: echo "job 3" > job3.md
- run: ls -al
- run: ls -al
- uses: actions/download-artifact@master
with:
name: my-artifact
path: job3.md

0 comments on commit b1ccb9c

Please sign in to comment.