From the course: Learning GitHub Actions
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Add jobs and steps to a workflow - GitHub Tutorial
From the course: Learning GitHub Actions
Add jobs and steps to a workflow
- [Instructor] So far, we have the start of a workflow, but it's not going to do anything unless we give it a job. Each workflow must have at least one job and each job must have a unique identifier. Job identifiers must start with a letter or an underscore and can only contain alphanumeric characters, dashes and underscores. And by default, jobs run in parallel. In another lesson, we'll see how we can work around that by building dependencies between jobs so they run sequentially. So let's add the jobs attribute to our workflow, and then under that, job one and job two. Along with the job identifiers, we can also give each of these jobs names. Let's call job one first job and job two second job. Now we need to specify the compute resource GitHub will use to run each job. To do that, we use the runs-on attribute. So under each job, I'll add runs-on. GitHub provides compute resources to run our jobs. These are called…
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)
-
-
-
-