From the course: Learning GitHub Actions
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Workflow and action attributes - GitHub Tutorial
From the course: Learning GitHub Actions
Workflow and action attributes
- [Instructor] Okay, we've created a workflow and used an action, but honestly, GitHub did a lot of the work for us, so before we code our own workflows and actions, let's get familiar with some of the common attributes we'll be using. The first attribute is name. This is used to identify the workflow. If you're planning to have multiple workflows in a repository, it's a good practice to give each workflow a name that will help you know what a workflow does. You might even consider giving the workflow the same name as the file that contains the workflow. One thing to note, though, the name attribute is not required. If you leave it out, GitHub will create a name for you using the path to the workflow file and the name of the file itself. Next up is the on attribute. This describes the GitHub event that will trigger the workflow. The on attribute is important, so it should come as no surprise that this attribute is…
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.