From the course: Learning GitHub Actions
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Add actions to a workflow - GitHub Tutorial
From the course: Learning GitHub Actions
Add actions to a workflow
- [Instructor] As we continue configuring our workflow, we need to add steps with actions and commands. For an action, we specify the uses attribute. This executes the actions code and a new process on the operating system. Because actions can contain multiple commands, actions can provide much more functionality in a workflow than just running one command after another. If we're adding an action with the uses keyword, we need to tell the workflow where to find the code for the action. Actions can be sourced from three different types of locations. The first type is a public repository. This would be any repository that's publicly accessible on github.com. They can also be located in the same repository as the workflow that's calling the action. And finally, actions can be sourced as an image from a Docker container registry like Docker hub. To source an action located on Docker hub, we would start with the keyword Docker,…
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)
-
-
-
-