GitHub Actions "Skipping this check because the workflow file is invalid on this ref"
GitHub evaluates the workflow file as it exists on a specific ref. If that file is invalid on the ref backing a required check, the check is skipped rather than run - leaving merge blocked with no failing job.
What this error means
A required check never runs and merge is blocked; the run page notes the workflow is invalid on the ref.
github-actions
Skipping this check because the workflow file is invalid on this ref.
The workflow file has a syntax or schema error on the branch backing this check.Common causes
Invalid workflow on the base or head ref
A YAML/schema error on the ref GitHub evaluates means the workflow cannot be compiled, so the check is skipped.
Required check name no longer produced
A renamed or invalid job means the required check name is never reported.
How to fix it
Fix the workflow on the relevant ref
- Open the workflow on the ref noted in the message and fix the YAML/schema error.
- Confirm the job that produces the required check name still exists.
- Push so the check can run.
How to prevent it
- Lint workflow files in CI on every change.
- Keep required-check names in sync with the jobs that emit them.
Related guides
GitHub Actions "Invalid workflow file" - Fix YAML Syntax ErrorsFix GitHub Actions "Invalid workflow file" errors - bad indentation, tabs, missing keys, or malformed YAML th…
GitHub Actions "workflow run failed: startup_failure"Fix a workflow run that fails with conclusion startup_failure before any job runs - usually an invalid workfl…
GitHub Actions Required Check Stuck "Expected - Waiting"Fix a GitHub Actions required status check stuck as "Expected" - a skipped job or path filter means the check…