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

The Key Words

Workflow, job, step.

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

GitHub Actions has six key words. Once you know them, every workflow file becomes easy to read. Workflow, event, job, step, runner, and action.

The Key Words
From the video: The Key Words
  • Six key words
  • Learn them once
  • Read any workflow

How they fit together

A workflow is the whole automation, stored in one YAML file. It's started by an event, like a push. Inside the workflow are one or more jobs, and each job runs on a runner, a fresh virtual machine. Inside each job is a list of steps. And a step either runs a shell command, or uses an action.

Workflow
Job
Step
How they fit together
From the video: How they fit together

The six words

Here they are side by side. A workflow is the file. An event starts it. A job is a group of steps on one machine. A step is one task. A runner is the machine. And an action is a reusable step that someone else wrote, like checking out your code.

WordMeaning
Workflowthe whole automation, one YAML file
Eventwhat starts it, like a push
Jobsteps that run on one machine
Stepone command or action
Runnerthe machine that runs a job
Actiona reusable, shared step

Summary

Workflows are started by events, and contain jobs. Jobs run on runners, and contain steps. Steps run commands, or use actions. Next, YAML, the language workflows are written in.

Key takeaways
  • Workflow → jobs → steps
  • Events start them
  • Runners run them
Next up: YAML Basics — keys and values