AI Hints
CI/CD with GitHub Actions · Lesson 26 of 138

Reading the Logs

What happened, step by step.

⏱ 2 min read▶ Video at 29:19🎓 Free
Watch this lesson in the CI/CD with GitHub Actions courseWatch on YouTube ↗Full CI/CD with GitHub Actions course

When a run finishes, the log is where you find out what happened. On GitHub, you open the Actions tab, click the run, then the job, and every step is listed with its output. Learning to read logs quickly is a real superpower.

Reading the Logs
From the video: Reading the Logs
  • The Actions tab
  • Run, job, steps
  • Read logs fast

Finding a log on GitHub

On GitHub, click Actions at the top of the repository. You see every run, newest first, with a tick or a cross. Click a run to see its jobs. Click a job, and you see its steps. Click a step to expand its output. When something fails, GitHub opens the failing step for you.

  1. Actions tab
  2. A run
  3. A job
  4. A step
  5. The output
Finding a log on GitHub
From the video: Finding a log on GitHub

What to look for

Start at the first red cross, not the last one, because later failures are often caused by the first. Read the last few lines of that step, where the error usually is. Look at the exit code. And check which commit and branch the run was for, at the top of the page.

keyvalue
First red crossthe real cause
Last linesusually the error
Exit codewhy it failed
Commit, branchwhich change

Summary

Open the run, then the job, then the first failing step, and read its last lines. Next, let's break the build on purpose.

Key takeaways
  • Actions → run → job → step
  • First failure first
  • Read the last lines
Next up: A Failing Build — red means stop