From the course: Learning GitHub Actions
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Use an action from a repository - GitHub Tutorial
From the course: Learning GitHub Actions
Use an action from a repository
- [Instructor] So far, we've seen how to add actions from the marketplace. Now let's take a look at adding actions from a GitHub repository. Actions can be referenced from the same repo as the workflow, any public repository, and docker images published to a repository like Docker Hub. If you want to use an action in the same repository as the workflow, we can specify any path relative to the root of the repo, so if the target action was inside the .github directory in a directory named action1, we would use the path starting with the dot followed by a slash and so on all the way down to the action1 directory. If we need to call an action from a different repository, we need to specify the ID of the user or organization that owns the repo, the name of the repo itself, and a reference pointing inside the repo. The reference can be a specific branch like the master branch, for example. Or it can be a tag or a SHA…
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)
Use an action from the Marketplace4m 6s
-
(Locked)
Use an action from a repository2m 25s
-
(Locked)
Passing arguments to an action4m 6s
-
(Locked)
Using environment variables5m 10s
-
(Locked)
Using secrets4m 1s
-
(Locked)
Using artifacts4m 7s
-
(Locked)
Manage pull requests3m 30s
-
(Locked)
Challenge: Develop a workflow that creates an artifact57s
-
(Locked)
Solution: Develop a workflow that creates an artifact8m 6s
-
(Locked)
-
-
-