Skip to content

Commit ee1a413

Browse files
Create job-chain.yml
1 parent d6bb3ad commit ee1a413

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/job-chain.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Display name
2+
name: Multiple Jobs
3+
on:
4+
workflow_dispatch:
5+
jobs:
6+
job-1:
7+
name: Job 1
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Output of job 1
11+
run: echo "Hello from Job 1"
12+
job-2:
13+
name: Job 2
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Output of job 2
17+
run: echo "Hello from job 2"
18+
job-3:
19+
name: Job 3
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Output of job 3
23+
run: echo "Hello from Job 3"
24+
job-4:
25+
name: Job 4
26+
runs-on: ubuntu-latest
27+
needs:
28+
- job-1
29+
- job-2
30+
- job-3
31+
steps:
32+
- name: Output of job 4
33+
run: echo "Hello from job 4"
34+
35+
36+
37+

0 commit comments

Comments
 (0)