What values can `needs.<job>.result` take?
BeginnerConceptJobs, Steps, Matrix & Concurrency
Answer
success, failure, cancelled, or skipped. A job with continue-on-error: true that failed reports success. In a matrix job, the result is the aggregate: failure if any leg failed (and was not continue-on-error), cancelled if cancelled. That aggregate is what a fan-in job sees, which is why one fan-in job is a reliable single required check.
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?IntermediateHow 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?BeginnerHow do you build a matrix dynamically from a previous job?Advanced