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 fe10fdf commit 82ddba2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/needs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ jobs:
with:
name: my-artifact
path: job1.md

- run: mkdir -p pkg/job1/lib
- run: mkdir -p pkg/job2/lib
- run: mkdir -p pkg/job3/lib
- run: echo "job 1" > pkg/job1/lib/job1={1..3}.md
- run: echo "job 1" > pkg/job2/lib/job1={1..3}.md
- run: echo "job 1" > pkg/job3/lib/job1={1..3}.md
- run: ls -al

- uses: actions/upload-artifact@master
with:
name: my-artifact-pkg
path:
pkg/**/lib/*.md

job2:
needs: job1
Expand Down Expand Up @@ -46,7 +60,15 @@ jobs:
- uses: actions/checkout@master
- run: echo "job 3" > job3.md
- run: ls -al

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

- run: ls -al

- uses: actions/download-artifact@master
with:
name: my-artifact-pkg

- run: ls -al

0 comments on commit 82ddba2

Please sign in to comment.