The logic and commands for your custom action are defined in a script. In this lesson, develop the outline for the commands your script will run.
- [Instructor] Let's get started … on the entrypoint script. … The first thing we need to do is make it executable. … This will allow the script to be run … when the container starts. … I'll do that with the chmod + x command. … Now let's take a look at the … ls of this directory. … In this output we could see that the … entrypoint script is now executable. … We can tell by the x entries … and the mode for the file. … Now let's take a look at the script. … At the top is the shebang line. … This tells the operating system … which interpreter to use to run the script. … In this case we're using bash. … I've also added the set - e directive. … So bash will exit the script immediately … if an error is encountered. … After that are some comments … outlining what our script does. … If we see the keyword "then do something" … if not "exit gracefully". … The $* is a variable that contains the … arguments that were passed to the script. … So for our "if" statement we're echoing … those arguments to grep command …
- Creating an action
- Creating a workflow
- Adding actions to a workflow
- Using an action from a repository
- Developing a CI/CD pipeline with GitHub Actions
- Building custom actions
- Publishing an action to the GitHub Marketplace
Skill Level Beginner
1. Your First Action
Your first Action2m 31s
2. Connecting Actions with Workflows
3. Using Actions
4. Developing a CI/CD Workflow
5. Building Custom Actions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.