Interview Prep/GitHub Actions/Workflow Anatomy & Execution Model

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"
All GitHub Actions questions Roadmap: GitHub Actions

More on Workflow Anatomy & Execution Model