What is the difference between a step's `outcome` and `conclusion`?
IntermediateConceptWorkflow Anatomy & Execution Model
Answer
steps.<id>.outcome is the real result before continue-on-error is applied; steps.<id>.conclusion is the result after. With continue-on-error: true a failing step has outcome == 'failure' and conclusion == 'success'. Use outcome to react to soft failures:
- id: e2e
continue-on-error: true
run: npm run e2e
- if: steps.e2e.outcome == 'failure'
run: echo "::warning::E2E failed, not blocking"
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