Interview Prep/GitHub Actions/Workflows Not Triggering & Invalid Files

`The workflow is not valid. ... (Line: 22, Col: 16): Unrecognized named-value: 'env'. Located at position 1 within expression: env.RUNNER`

IntermediateTroubleshootingWorkflows Not Triggering & Invalid Files
Answer

Likely causes → env context used where it is not available, such as runs-on, job-level if, concurrency at workflow level, or services.

Diagnose → Check the context availability table for that key.

Fix → Use vars.RUNNER or inputs.runner for runs-on, move the condition to step level, or compute the value in an earlier job and pass via needs.

Prevent → actionlint knows context availability and catches this before pushing.

All GitHub Actions questions Roadmap: GitHub Actions

More on Workflows Not Triggering & Invalid Files