The "Run workflow" button for `workflow_dispatch` does not appear.
BeginnerTroubleshootingWorkflows Not Triggering & Invalid Files
Answer
Likely causes → The workflow with workflow_dispatch exists only on a feature branch, not on the default branch; or the file has a syntax error on the default branch.
Diagnose →
git show origin/main:.github/workflows/deploy.yml | yq '.on'
gh workflow list --all
Fix → Merge the workflow to the default branch; then you can dispatch it on any ref. From the CLI, gh workflow run deploy.yml --ref feature/x also works once the default branch knows the workflow.
Prevent → Add new manual workflows to the default branch first with a no-op job.
More on Workflows Not Triggering & Invalid Files
You pushed a new workflow file and nothing appears in the Actions tab.Beginner`Invalid workflow file: .github/workflows/ci.yml#L14 You have an error in your yaml syntax on line 14`Beginner`The workflow is not valid. .github/workflows/ci.yml (Line: 9, Col: 5): Unexpected value 'steps'`BeginnerThe workflow runs on push to `main` but never on pull requests.BeginnerA scheduled workflow stopped running weeks ago, no errors.BeginnerA cron set to `0 9 * * *` runs at 14:30 local time, and sometimes 15 minutes late.Beginner