Skip to content

Commit ae9c441

Browse files
committed
dispatch inputs
1 parent 60e3242 commit ae9c441

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

.github/workflows/default.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,27 @@ on:
55
push:
66
pull_request:
77
workflow_dispatch:
8+
inputs:
9+
boolean:
10+
description: 'A boolean input'
11+
default: true
12+
required: true
13+
type: boolean
14+
number:
15+
description: 'A number input'
16+
default: 0
17+
required: true
18+
type: number
19+
string:
20+
description: 'A string input'
21+
default: 'foo'
22+
required: true
23+
type: string
24+
optional:
25+
description: 'An optional input'
26+
default: 'fallback'
27+
required: false
28+
type: string
829
repository_dispatch:
930

1031
concurrency:
@@ -20,6 +41,7 @@ jobs:
2041
call_worker:
2142
uses: ./.github/workflows/worker.yml
2243
with:
23-
boolean: false
24-
number: 1
25-
string: 'hello'
44+
boolean: ${{ inputs.boolean }}
45+
number: ${{ inputs.number }}
46+
string: ${{ inputs.string }}
47+
optional: ${{ inputs.optional }}

0 commit comments

Comments
 (0)