Describe the bug
When a workflow_dispatch calls a reusable workflow, the input of type number causes the workflow run to fail.
To Reproduce
This is the reusable workflow that is called:
name: Called workflow
on:
workflow_call:
inputs:
inputA:
description: Number input
required: true
type: number
inputB:
description: String input
required: true
type: string
jobs:
print_hello_world:
runs-on: ubuntu-latest
steps:
- name: Print inputs
run: echo "Hello world"
This is the caller workflow that calls above workflow:
name: Caller Workflow
on:
workflow_dispatch:
inputs:
inputA:
description: Number input
required: true
type: number
inputB:
description: String input
required: true
type: string
jobs:
call_reusable_workflow:
uses: ./.github/workflows/called-workflow.yml
with:
inputA: ${{ inputs.inputA }}
inputB: ${{ inputs.inputB }}
Error:
When triggering the workflow_dispatch using UI, I pass 123 as value for inputA and some string for inputB.
The job doesn't even start and I see following error:
Caller Dispatch Workflow: .github#L1
The template is not valid. .github/workflows/caller-workflow.yml (Line: 19, Col: 15): Unexpected value '123'
Also if I hardcode inputA when calling the called workflow, run succeeds. for example:
jobs:
call_reusable_workflow:
uses: ./.github/workflows/called-workflow.yml
with:
inputA: 1000
inputB: ${{ inputs.inputB }}
Expected behavior
Workflow run should not fail when a number input is used in workflow_dispatch that calls a reusable workflow with same number input.
Runner Version and Platform
Version of your runner?
Github Hosted: '2.309.0'
OS of the machine running the runner? OSX/Windows/Linux/...
What's not working?
Please include error messages and screenshots.
Job Log Output
The job does not even start, it just shows The template is not valid. and doesn't run anything.
Describe the bug
When a workflow_dispatch calls a reusable workflow, the input of type number causes the workflow run to fail.
To Reproduce
This is the reusable workflow that is called:
This is the caller workflow that calls above workflow:
Error:
When triggering the workflow_dispatch using UI, I pass
123as value forinputAand some string forinputB.The job doesn't even start and I see following error:
Also if I hardcode
inputAwhen calling the called workflow, run succeeds. for example:Expected behavior
Workflow run should not fail when a number input is used in workflow_dispatch that calls a reusable workflow with same number input.
Runner Version and Platform
Version of your runner?
Github Hosted: '2.309.0'
OS of the machine running the runner? OSX/Windows/Linux/...
What's not working?
Please include error messages and screenshots.
Job Log Output
The job does not even start, it just shows
The template is not valid.and doesn't run anything.