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

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…

Contents