Action
ELI5 — The Vibe Check
An action is a reusable mini-program that does one specific thing inside your pipeline. Instead of writing the same 20 lines to set up Node.js every time, someone packaged it into an action you can just plug in. It's like a Lego brick — someone already designed it, you just click it into place.
Real Talk
In GitHub Actions, an action is a reusable unit of code that performs a specific task within a workflow step. Actions can be from the GitHub Marketplace, your own repo, or Docker containers. They abstract complex setup steps into a single uses: declaration.
Show Me The Code
steps:
- uses: actions/checkout@v3 # Checks out your repo
- uses: actions/setup-node@v3 # Installs Node.js
with:
node-version: '20'
- uses: actions/cache@v3 # Caches node_modules
When You'll Hear This
"There's a Marketplace action for deploying to AWS." / "Write a custom action to handle our Slack notifications."
Related Terms
GitHub Actions
GitHub Actions is CI/CD built right into GitHub. Push code, run tests, deploy — all from YAML files in your repo. No separate CI server needed.
Job
A job is one chunk of work in your pipeline, running on its own machine.
Pipeline
A pipeline is like an assembly line at a factory.
Step
A step is the smallest unit of work in a pipeline — a single command or action.
Workflow
A workflow is a recipe for your robot assistant — it tells CI exactly what to do when something happens. 'When someone pushes code, run tests.