Interview Prep/GitHub Actions/Jobs, Steps, Matrix & Concurrency

What is `jobs.<id>.timeout-minutes` vs `steps[*].timeout-minutes`, and which takes precedence?

BeginnerConceptJobs, Steps, Matrix & Concurrency
Answer

The job timeout limits the whole job including setup; a step timeout limits one step. Both apply independently: whichever expires first cancels. A step timing out fails that step (then if: always() cleanup steps can still run) until the job timeout, which cancels everything. Put a short step timeout on network-dependent steps like kubectl rollout status (or use its own --timeout).

All GitHub Actions questions Roadmap: GitHub Actions

More on Jobs, Steps, Matrix & Concurrency