GitHub Actions is an event-driven automation tool. It allows you to automate tasks and define custom CI/CD pipelines directly within your GitHub repository.
Workflow: A workflow is an automated procedure that you add to your repository. It’s defined by a YAML file in the .github/workflows
directory. A repository can have multiple workflows, and each workflow can be triggered by different events.
Event: An event is a specific activity in a repository that triggers a workflow run. Common events include:
Push: When code is pushed to a branch.
Pull request: When a pull request is created, updated, or closed.
Schedule: To run a workflow at a specific time (e.g., every day at midnight).
Job: A job is a set of steps in a workflow that executes on the same runner (a virtual machine). Each job runs in a clean environment and can run in parallel with other jobs by default.
Step: A step is a single task within a job. It can be a command to execute (e.g., npm install
) or an action to run.
Action: An action is a reusable command or script that performs a specific task. GitHub provides many official actions, and you can also find a vast library of community-created actions in the GitHub Marketplace.