From the course: Learning GitHub Actions
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Create a workflow - GitHub Tutorial
From the course: Learning GitHub Actions
Create a workflow
- [Instructor] To do anything useful with an action, we need to start with a workflow. The main purpose of a workflow is to define the GitHub event that triggers execution of any actions the workflow contains. Workflows also define which actions will be run based on the event. Using these two features together, one repository can contain several workflows each calling different actions based on specific events. With that knowledge, let's start our workflow. I'm working in a new repository that I've cloned to my local file system. There's only a read me file here at the moment. So let's add a workflow. Workflows are stored in a directory named .github/workflows. So I'll create that location by entering mkdir -p .github/workflows. The -p option will create both directories at the same time. One thing we need to note about the .github directory is that on some operating systems directories that start with a dot are hidden.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Create a workflow3m 11s
-
(Locked)
Add jobs and steps to a workflow2m 36s
-
(Locked)
Add actions to a workflow4m 27s
-
(Locked)
Run a workflow2m 31s
-
(Locked)
Add dependencies between actions1m 50s
-
(Locked)
Add conditions to a workflow2m 40s
-
(Locked)
Workflow and action limitations1m 27s
-
(Locked)
Challenge: Develop a complex workflow1m 2s
-
(Locked)
Solution: Develop a complex workflow6m 18s
-
(Locked)
-
-
-
-