`No event triggers defined in "on"`
BeginnerTroubleshootingWorkflows Not Triggering & Invalid Files
Answer
Likely causes → on: is empty, misspelled (On: or trigger:), or indentation placed events under another key. In YAML 1.1, unquoted on can parse as boolean true in some tools, but GitHub handles it; the problem is usually structure.
Diagnose →
yq '.on' .github/workflows/ci.yml
Fix → Add at least one event under on:, correctly indented.
Prevent → actionlint.
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.BeginnerThe "Run workflow" button for `workflow_dispatch` does not appear.BeginnerA scheduled workflow stopped running weeks ago, no errors.Beginner