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

`error parsing called workflow ".github/workflows/deploy.yml": workflow is not reusable as it is missing a `on.workflow_call` trigger`

BeginnerTroubleshootingWorkflows Not Triggering & Invalid Files
Answer

Likely causes → The target workflow lacks on: workflow_call, or the ref used in uses: points to a version before you added it.

Diagnose →

git show origin/main:.github/workflows/deploy.yml | yq '.on'

Fix → Add workflow_call with the inputs the caller passes; reference the right ref.

Prevent → Test reusable workflows with a caller in the same repo in CI.

All GitHub Actions questions Roadmap: GitHub Actions

More on Workflows Not Triggering & Invalid Files