Interview Prep/GitHub Actions/Expressions, Outputs, Matrix & Conditions

`hashFiles('**/package-lock.json') couldn't finish within 120 seconds.`

IntermediateTroubleshootingExpressions, Outputs, Matrix & Conditions
Answer

Likely causes → Huge workspace (large node_modules, checked-out submodules, build outputs) scanned by the glob on a slow self-hosted disk.

Diagnose → find . -name package-lock.json | wc -l and workspace size with du -sh.

Fix → Narrow the pattern (package-lock.json, services/*/package-lock.json), exclude !**/node_modules/**, or compute the key in a step with sha256sum.

Prevent → Ephemeral runners with clean workspaces.

All GitHub Actions questions Roadmap: GitHub Actions

More on Expressions, Outputs, Matrix & Conditions