Reusable Workflows & Composite Actions in GitHub Actions
Intermediate · 35 minutes · 100 points
In this hands-on lab, you will simulate the structure and logic of GitHub Actions reusable workflows and composite actions using local shell scripting. You will create composite action scripts that bundle multiple steps, build reusable workflow scripts that accept inputs and produce outputs, wire them together using a caller script, and validate the entire pipeline end-to-end — all within a local Ubuntu container that mirrors real CI/CD patterns.
What you’ll learn
- Understand the structure of GitHub Actions composite actions by building equivalent shell-based composites
- Create reusable workflow scripts that accept inputs and emit outputs, mirroring reusable workflow patterns
- Wire composite actions and reusable workflows together via a caller script, validating end-to-end pipeline execution
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 3 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: ubuntu:22.04
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
Topics: github-actions, reusable-workflows, composite-actions, ci-cd, automation, devops, shell-scripting
Create a free account to start this lab.