Skip to content

Commit f27100d

Browse files
committed
'.'
1 parent 2b4b636 commit f27100d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/reusable.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Called workflow (reusable.yml)
2+
name: Reusable workflow
3+
on:
4+
workflow_call:
5+
inputs:
6+
username:
7+
required: true
8+
type: string
9+
10+
jobs:
11+
reusable_job:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- run: echo "Hello ${{ inputs.username }}"
16+
17+
# Caller workflow (use.yml)
18+
name: Caller workflow
19+
on: [push]
20+
jobs:
21+
call_reusable:
22+
uses: dubloksoftware/workflows/.github/workflows/reusable.yml@main
23+
with:
24+
username: "John"

0 commit comments

Comments
 (0)