Skip to content

Commit ada5aed

Browse files
committed
.
1 parent def771b commit ada5aed

File tree

3 files changed

+36
-6
lines changed

3 files changed

+36
-6
lines changed

.github/workflows/reusable.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ on:
66
required: true
77

88
jobs:
9-
hello_world:
10-
runs-on: ubuntu-latest
11-
environment: ${{ inputs.env }}
12-
steps:
13-
- name: Hello world
14-
run: echo "Hello, world!"
9+
hello_world_1:
10+
uses: ./.github/workflows/reusable_1.yml
11+
with:
12+
env: ${{ inputs.env }}
13+
hello_world_2:
14+
uses: ./.github/workflows/reusable_2.yml
15+
with:
16+
env: ${{ inputs.env }}

.github/workflows/reusable_1.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
on:
2+
workflow_call:
3+
inputs:
4+
env:
5+
type: string
6+
required: true
7+
8+
jobs:
9+
hello_world_1:
10+
runs-on: ubuntu-latest
11+
environment: ${{ inputs.env }}
12+
steps:
13+
- name: Hello world 1
14+
run: echo "Hello, world 1!"

.github/workflows/reusable_2.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
on:
2+
workflow_call:
3+
inputs:
4+
env:
5+
type: string
6+
required: true
7+
8+
jobs:
9+
hello_world_2:
10+
runs-on: ubuntu-latest
11+
environment: ${{ inputs.env }}
12+
steps:
13+
- name: Hello world 2
14+
run: echo "Hello, world 1!"

0 commit comments

Comments
 (0)