How are logs, annotations and step summaries different?
BeginnerConceptWorkflow Anatomy & Execution Model
Answer
- Logs: raw stdout and stderr per step, retained with the run (90 days by default).
- Annotations:
::error file=app.js,line=10::msg,::warning::,::notice::messages that appear on the run summary and inline on the PR diff. - Step summary: markdown appended to
$GITHUB_STEP_SUMMARY, rendered on the run page; good for test results, image digests, and deployment URLs.
echo "### Image pushed: \`$IMAGE@$DIGEST\`" >> "$GITHUB_STEP_SUMMARY"
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