What is `timeout-minutes` and what are the default limits?
BeginnerConceptWorkflow Anatomy & Execution Model
Answer
timeout-minutes cancels a job or step that exceeds the limit. The default job timeout is 360 minutes (6 hours) on hosted runners, which is the maximum there; self-hosted jobs can run up to 5 days. A workflow run can last at most 35 days including waiting for approvals. We always set an explicit short job timeout (for example 15 to 30 minutes): a hung test burning 6 hours of minutes on every run is a common cost leak.
More on Workflow Anatomy & Execution Model
Define workflow, run, job, step, action and runner in one line each.BeginnerWhat is the minimum valid workflow file?BeginnerWhere must workflow files live, and does the file extension matter?BeginnerWhich version of the workflow file does GitHub use for a given run?IntermediateWhat does a GitHub-hosted runner give you at the start of a job?BeginnerShould you use `ubuntu-latest` or `ubuntu-24.04`?Beginner