You add a workflow_dispatch input named 'force_deploy' that should appear as a checkbox in the 'Run workflow' UI. Which input type must you use?
Select an answer to reveal the explanation.
Short Explanation and Infographic
workflow_dispatch supports type: boolean for checkbox-style inputs. There is no type named checkbox — boolean is the correct keyword in the inputs schema.
Full explanation below image
Full Explanation
workflow_dispatch inputs support several types: string, choice, boolean, environment, and number. type: boolean renders a checkbox in the Actions Run workflow dialog and yields a boolean-style value for conditions. Using type: string with a default of false still shows a free-text field. type: choice with true/false options creates a dropdown, not a checkbox. type: checkbox is not a valid workflow_dispatch input type. After defining the input under on.workflow_dispatch.inputs.force_deploy, reference it as inputs.force_deploy in the workflow (or github.event.inputs.force_deploy). Boolean dispatch inputs are handy for optional skip-tests or force-deploy flags without editing YAML each time.