From the course: Learning GitHub Actions
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Run a workflow - GitHub Tutorial
From the course: Learning GitHub Actions
Run a workflow
- [Instructor] At this point, we have our workflow defined with a name, a trigger, two jobs, and the steps inside those jobs that call actions and commands. The only thing left to do now is run the workflow. I'll stop editing the workflow file and use git commands to upload the file to my repository. First, git add includes the file in the commit. And then git commit creates the commit that I'll push up to the repo. I'll include a message with the -m switch. How about first commit? And now I can push it up with git push. Now let's take a look at the Actions tab in our repo. Our workflow is triggered by push events, so by the time we get to the Actions tab, we can see it's already been queued and finished running. If we click into this run, we find that both jobs have finished successfully, indicated by the green check mark next to them. And looking at the steps for the first job, we can see that each step also ran…
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)
-
-
-
-