Skip to content

Commit 4ea405d

Browse files
authored
Update 02-basic-multiple-jobs-needs.yml
1 parent 49da633 commit 4ea405d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/02-basic-multiple-jobs-needs.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,18 @@ jobs:
2424
# Runs a single command using the runners shell
2525
- name: Run a one-line script
2626
run: echo Hello from job1
27+
job1a:
28+
# The type of runner that the job will run on
29+
runs-on: ubuntu-latest
30+
# Steps represent a sequence of tasks that will be executed as part of the job
31+
steps:
32+
# Runs a single command using the runners shell
33+
- name: Run a one-line script
34+
run: echo Hello from job1
2735
job2:
2836
# The type of runner that the job will run on
2937
runs-on: ubuntu-latest
30-
needs: [job1]
38+
needs: [job1, job1a]
3139
# Steps represent a sequence of tasks that will be executed as part of the job
3240
steps:
3341
# Runs a single command using the runners shell

0 commit comments

Comments
 (0)