Prompt for environment or other runtime parameters.

Section: Workflow skeleton

Manual run with inputs

yaml
yaml
on:
  workflow_dispatch:
    inputs:
      environment:
        description: Deploy target
        required: true
        default: staging
        type: choice
        options:
          - staging
          - production
Explanation

Inputs are useful for ad hoc deploys, scripts, and maintenance workflows.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Workflow skeleton
Add a manual run button
Enable workflow_dispatch for manual execution.
OpenIn sheetyamlsame section
Minimal workflow file
Basic YAML structure for a workflow.
OpenIn sheetyamlsame section
Name a workflow clearly
Use a descriptive workflow name.
OpenIn sheetyamlsame section
Run on push to selected branches
Trigger on pushes to specific branches.
OpenIn sheetyamlsame section
Run on pull requests
Trigger on pull requests for review pipelines.
OpenIn sheetyamlsame section
Run on a cron schedule
Schedule workflows using cron syntax in UTC.
OpenIn sheetyamlsame section