`The workflow is not valid. .github/workflows/ci.yml (Line: 9, Col: 5): Unexpected value 'steps'`
BeginnerTroubleshootingWorkflows Not Triggering & Invalid Files
Answer
Likely causes → steps placed at the wrong level (under on or directly under jobs instead of under a job id), or a job that uses uses: (reusable workflow call) also has steps or runs-on.
Diagnose →
yq '.jobs | keys' .github/workflows/ci.yml
yq '.jobs.build | keys' .github/workflows/ci.yml
Fix → Nest as jobs.<id>.runs-on and jobs.<id>.steps. For reusable workflow calls, move steps into the called workflow.
Prevent → actionlint reports the exact key and allowed alternatives.
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`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.BeginnerA cron set to `0 9 * * *` runs at 14:30 local time, and sometimes 15 minutes late.Beginner