

Job: A set of steps that are run in sequence to accomplish a task.Workflow: This is the workflow that is run when the event occurs.It represents an activity in the repository that will trigger a workflow run. Event: This is the event that triggers the action.Let's break down this diagram, starting from the left and going right:


The possibilities are endless for what you can do! What are the components of GitHub Actions?īefore we get started writing code, it's important for us to understand the building blocks of GitHub Actions. Or it can turn on your coffee machine when you create a new pull request. It can also integrate with an SMS service provider to alert you when an urgent issue is created in your repo. The former is the product's name and the latter is custom code that you can include in a workflow job as a step to accomplish a task.įor example, an action can publish your code to a package manager like npm or yarn. That's why I'm going to show you how to create your first custom JavaScript action in just few steps.įirst, we need to establish the distinction between "GitHub Actions" and an "Action". I'm especially excited when I see how creative people are when using them to automate different tasks.
