From the course: Learning GitHub Actions
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Plan a custom action - GitHub Tutorial
From the course: Learning GitHub Actions
Plan a custom action
- [Instructor] If there is some very specific functionality that we need in a workflow, we can create our own custom action. Before we start though, let's make a plan with a checklist. We'll need a few things: an objective, a repository, a Dockerfile, and a script, and we'll also need an action.yml file for our metadata along with a read me file. Before we start coding, we need a solid objective. This will help us figure out exactly what our action will do. We can start by asking ourselves, what problem will this action solve? We can also ask if the action can be parameterized. If we parameterize the action, we'll be able to use it for more than just one purpose. We could probably ask more questions to figure out the requirements for our actions, but this should give us a good start. Next, we'll need a new public repository. Keeping our action code in its own repository will help with managing and versioning the code.…
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)
Plan a custom action4m 28s
-
(Locked)
Your custom action objective1m 7s
-
(Locked)
Dockerfile review4m 58s
-
(Locked)
Add a Dockerfile2m 20s
-
(Locked)
Add an entry-point script2m 30s
-
(Locked)
Use runtime environment resources4m 11s
-
(Locked)
Test an action locally3m 52s
-
(Locked)
Complete the entry-point script2m 2s
-
(Locked)
Add a metadata file2m 48s
-
(Locked)
Add a README file1m 48s
-
(Locked)
Deploy a custom action2m 22s
-
(Locked)
Publish an action to the Marketplace4m 16s
-
(Locked)
Challenge: Create a custom action1m
-
(Locked)
Solution: Create a custom action7m 47s
-
(Locked)
-