Some actions need to be configured with arguments before they can run in a workflow. In this video, take a look at setting up an action by passing in arguments.
- [Instructor] Most actions will run as intended … without any input, … but some actions require arguments … to determine how the action will operate in a workflow. … To pass arguments to a step, we use the with attribute. … This creates a new block in the step … where we can map arguments … to the input parameters defined by the action. … Like other YAML blocks that define maps, … each input parameter is a key value pair. … In this example, we're adding a step … that uses GitHub's checkout action. … To set up the step to pass arguments to the checkout action, … we would add the with attribute after the uses attribute. … Then we would add arguments as keys … and their corresponding values. … The checkout action can take several arguments. … Let's look at a few of them. … For the repository argument, … I've added apache/tomcat as the value. … This tells the checkout action to check out all the code … from the apache/tomcat repo on github.com. … If the repository argument is not specified, …
- 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.