D1: workflow_dispatch & workflow_call Inputs
GH-200 GitHub Actions exam practice questions · 11 flashcards
Question
workflow_dispatch input types?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 workflow_dispatch & workflow_call Inputs practice questions and answers
- workflow_dispatch input types?string, boolean, choice, number, environment.
- Input properties?description, required, default, type, options (for choice).
- Accessing inputs?${{ inputs.name }} (also github.event.inputs.name for dispatch).
- workflow_call inputs?Declared under on.workflow_call.inputs with type (string, number, boolean) and required/default.
- workflow_call secrets?Declared under on.workflow_call.secrets; caller passes with secrets: or secrets: inherit.
- secrets: inherit?Passes all caller's secrets implicitly to the reusable workflow (same org/enterprise).
- Calling a reusable workflow?jobs.<id>.uses: owner/repo/.github/workflows/file.yml@ref with with: and secrets:.
- workflow_call outputs?Map job outputs to workflow outputs for callers.
- Max inputs for workflow_dispatch?Up to 25 inputs (GitHub increased limit).
- Validating inputs?Use types, choices, required flags, and validate in steps before use.
- Scenario: manual deploy workflow letting user pick staging/prod. Input type?choice (or environment) input.