This video is part 8 in my Introduction to GitHub Actions video series. At this point we have a workflow that runs on both a pull request and another on a push to the default branch. But what we are seeing is that we are running some of the same steps in each workflow.
We want to create a custom "composite" action that allows us to put all that code in one spot, and reference it from multiple places. That's were building a custom action comes in. There are three different types of custom actions, and for this instance we are using a "composite" custom action.
This video will also be helpful in preparing for the GitHub Actions certification exam.
Demo Repo: https://github.com/devopselvis/my-github-actions-presentation
============================================================
🕔 TIMESTAMPS
0:00 Intro
1:27 Review PR and Push to Main Workflows
3:36 Build custom composite action
10:58 Use the composite action
17:01 Watch me try and get fancy and break the demo (sort of)
19:45 Wrap-up
============================================================
🎥 INTRODUCTION TO GITHUB ACTIONS VIDEO SERIES
▶️ Part 1 - Your First GitHub Actions Workflow -
https://youtu.be/xZyeAWawyVk
▶️ Part 2 - Chaining Jobs Together In A Workflow -
https://youtu.be/4A1g8tyKPi4
▶️ Part 3 - The GitHub Context Object and Variables -
https://youtu.be/nNItXK3xd2s
▶️ Part 4 - The GitHub Marketplace -
https://youtu.be/JYOGmLzMbpM
▶️ Part 5 - Run A Workflow Against A Pull Request -
https://youtu.be/ClLKbB_59Ec
▶️ Part 6 - Repository Rulesets -
https://youtu.be/ZTbM-h9RZOo
▶️ Part 7 - Deploy Your App Using GitHub Actions -
https://youtu.be/_NPY3wGHnK4
▶️ Part 8 - Create Your First Custom GitHub Action -
https://youtu.be/zQdEsIBbVjE
▶️ Part 9 - Create Your First Reusable Workflow -
https://youtu.be/gDBZGCGSs6E
▶️ Part 10 - Concurrency -
https://youtu.be/JhBCHRtKcik
▶️ Part 11 - Trigger on a Custom Event -
https://youtu.be/TmuqKFdh6kw
▶️ Part 12 - Masking Variables and Secrets -
https://youtu.be/p7aOmRJ0qcY
===========================================================
🌐 FIND ME
👉 Blog: https://mickeygousset.com
👉 GitHub: https://github.com/mickeygousset
👉 Twitter: https://twitter.com/mickey_gousset