In a reusable workflow called via workflow_call, how do you access the inputs passed by the caller?
Select an answer to reveal the explanation.
Short Explanation and Infographic
The 'inputs' context works uniformly for workflow_call, workflow_dispatch, and composite actions — it's the standard input accessor.
Full explanation below image
Full Explanation
The 'inputs' context provides access to inputs in three scenarios: workflow_call inputs (from the caller workflow), workflow_dispatch inputs (from manual triggers or API), and composite action inputs. In all cases the syntax is '${{ inputs.input-name }}'. For 'workflow_dispatch', inputs are also accessible via '${{ github.event.inputs.name }}' but '${{ inputs.name }}' is the preferred modern syntax. '${{ caller.inputs }}' and '${{ with.inputs }}' are not valid contexts. The 'with:' block is how the CALLER specifies inputs; the called workflow sees them via the 'inputs' context.