GitHub Actions is a powerful platform that empowers your team to go from code to cloud all from the comfort of your own repositories.
Over the duration of this course, approximately 1 hour, you will learn the skills needed to begin using and customizing GitHub Actions in your unique workflow scenarios.
We will be using Node.js to build our action and GitHub to consume our action. This presents us with a hybrid environment, the Node.js runtime environment and the virtual machine used by GitHub Actions, that you may not be used to if you've taken other Learning Lab courses.
Before we can get started there are a few things you need to setup on your local machine
Create a pull request to add a workflow
Wait for GitHub to run the workflow and report back the results
Add an Action reference to the workflow file
Lets prepare your environemtn to start writing Actions
Create an action.yml file and add necessary metatdata for our Action
time to start adding code to main.js
extend your action to accept input parameters
view the results of adding input parameter
Write a new Action that call an external API
Comment out the lines in the workflow to prevent unwanted runs
Add action.yml file for new joke action
Add joke.j and main.js to your Action
Edit the workflow file to now use the newly created joke Action
Wait for your Action to present you with a joke
Edit the workflow to accomodate the third action
Create an Action that consumes output from another Action and uses Octokit
Create the metadata for the third Action
Add a pull request label to trigger the workflow
Final notes before you go
All public courses on Learning Lab are free.