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).
More on Jobs, Steps, Matrix & Concurrency
How does `needs` work, and what happens to a job whose dependency failed or was skipped?BeginnerWhat is the implicit `success()` in a job `if`, and why is `always()` usually the wrong fix?IntermediateWhat values can `needs.<job>.result` take?BeginnerHow does a matrix expand, and how are job names generated?BeginnerHow do `include` and `exclude` work in a matrix?IntermediateWhat do `fail-fast` and `max-parallel` do?Beginner