forked from yogeshlonkar/wait-for-jobs
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.13 KB
/
without-wait-for-jobs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Without wait-for-jobs
on:
workflow_dispatch:
jobs:
start:
name: Start
runs-on: ubuntu-latest
steps:
- run: echo "Some step"
job1:
name: Job 1
needs: start
runs-on: ubuntu-latest
outputs:
out1: ${{ steps.s1.outputs.out1 }}
steps:
- run: sleep 10
- id: s1
run: echo "::set-output name=out1::test-1"
job2:
name: Job 2
needs: start
runs-on: ubuntu-latest
outputs:
out2: ${{ steps.s2.outputs.out2 }}
steps:
- run: sleep 15
- id: s2
run: echo "::set-output name=out2::test-2"
job3:
name: Job 3
needs: start
runs-on: ubuntu-latest
outputs:
out3: ${{ steps.s3.outputs.out3 }}
steps:
- run: sleep 60
- id: s3
run: echo "::set-output name=out3::test-3"
job4:
name: Job 4
needs: [job1, job2, job3]
runs-on: ubuntu-latest
steps:
- run: |
echo "Some step that can run without job 3:: ${{ needs.job1.outputs.out1 }} :: ${{ needs.job2.outputs.out2 }}"
- run: sleep 60
- run: |
echo "Some step that needs job 3:: ${{ needs.job3.outputs.out3 }}"