Skip to content

Commit

Permalink
dispatch inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinMind committed Jun 25, 2024
1 parent 60e3242 commit ae9c441
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@ on:
push:
pull_request:
workflow_dispatch:
inputs:
boolean:
description: 'A boolean input'
default: true
required: true
type: boolean
number:
description: 'A number input'
default: 0
required: true
type: number
string:
description: 'A string input'
default: 'foo'
required: true
type: string
optional:
description: 'An optional input'
default: 'fallback'
required: false
type: string
repository_dispatch:

concurrency:
Expand All @@ -20,6 +41,7 @@ jobs:
call_worker:
uses: ./.github/workflows/worker.yml
with:
boolean: false
number: 1
string: 'hello'
boolean: ${{ inputs.boolean }}
number: ${{ inputs.number }}
string: ${{ inputs.string }}
optional: ${{ inputs.optional }}

0 comments on commit ae9c441

Please sign in to comment.