Skip to content

Commit 898a6a1

Browse files
chained jobs
1 parent 002f9ae commit 898a6a1

File tree

1 file changed

+47
-24
lines changed

1 file changed

+47
-24
lines changed

.github/workflows/main.yml

Lines changed: 47 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,52 @@ on:
55
branches:
66
- main
77
workflow_dispatch:
8-
inputs:
9-
homedrive:
10-
description: 'The home drive on the machine'
11-
require: true
12-
logLevel:
13-
description: 'Log level'
14-
type: choice
15-
options:
16-
- info
17-
- warning
18-
- debug
19-
tag:
20-
description: 'Apply tag after successful test run'
21-
required: true
22-
type: boolean
23-
environment:
24-
description: 'Environment to run tests against'
25-
required: true
8+
# inputs:
9+
# homedrive:
10+
# description: 'The home drive on the machine'
11+
# require: true
12+
# logLevel:
13+
# description: 'Log level'
14+
# type: choice
15+
# options:
16+
# - info
17+
# - warning
18+
# - debug
19+
# tag:
20+
# description: 'Apply tag after successful test run'
21+
# required: true
22+
# type: boolean
23+
# environment:
24+
# description: 'Environment to run tests against'
25+
# required: true
2626

27+
# jobs:
28+
# Myfrstjob:
29+
# runs-on: ubuntu-latest
30+
# steps:
31+
# - run: |
32+
# echo "Hello Worlds "
33+
# echo "This is multiple line implementations"
34+
#
2735
jobs:
28-
Myfrstjob:
29-
runs-on: ubuntu-latest
30-
steps:
31-
- run: |
32-
echo "Hello Worlds "
33-
echo "This is multiple line implementations"
36+
job_1:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- run : echo "Job: ${{github.job}}"
40+
job_2:
41+
runs-on: ubuntu-latest
42+
needs: job_1
43+
steps:
44+
- run: echo "Job: ${{github.job}}"
45+
job_3:
46+
runs-on: ubuntu-latest
47+
needs: job_1
48+
steps:
49+
- run: echo "Job: ${{github.job}}"
50+
job_4:
51+
runs-on: ubuntu-latest
52+
needs:
53+
- job_2
54+
- job_3
55+
steps:
56+
- run: echo "Job: ${{github.job}}"

0 commit comments

Comments
 (0)