From the course: Learning GitHub Actions

Unlock the full course today

Join today to access over 24,200 courses taught by industry experts.

Solution: Create a custom action

Solution: Create a custom action - GitHub Tutorial

From the course: Learning GitHub Actions

Solution: Create a custom action

(upbeat music) - [Instructor] In this challenge you're asked to create a custom action and call that action from a different repository. I'm logged into my GitHub account and I have two tabs open in my browser. This one for the custom action and another one for the workflow that caused the custom action. Let's start with creating the action. The first thing we need to add is a docker file. I'll click on add file, create new file and then give our docker file a name which is of course docker file. Okay, let's add the contents to our docker file now and we start with the, from statement which specifies the operating system we're going to use for the container that runs this action and I'm going to pick Ubuntu. Next I'll use the copy command to copy the entry point script in, entry point dot SH note that I'm going to add a slash in front of the location where I'm copying the entry point script to.…

Contents