How packtpublishing/mastering-github-actions works
This repository is a book’s collection of GitHub Actions examples, not one integrated application. Its examples span Node.js builds and deployments, reusable workflows, repository and team automation, operational reporting, and a browser-based repository catalog. One concrete runtime path is the Rich Checks action: it validates optional annotation and image inputs, then creates or updates a GitHub check run. The excerpts do not establish connections between most chapter examples, so those are shown as separate capabilities rather than an invented end-to-end pipeline.
Main entry points: richchecks1.0/index.js Rich Checks · scripts/index.js Repository Catalog UI · server.js Node Server · validateAnnotationsArray.js Annotation Validation
Components 19
Check Action
- Rich Checks
Chapter 9/richchecks1.0/index.js - Annotation Validation
Chapter 9/richchecks1.0/validateAnnotationsArray.js - Image Validation
Chapter 9/richchecks1.0/validateImagesArray.js
Node Examples
- Hello World App
Chapter 2/app/index.js - Node App
Chapter 5/app/src/index.js - Node Server
Chapter 7/nodeapp/server.js - Random Number App
Chapter 7/nodeapp/index.js - Build Workflows
Chapter 2/.github/workflows - Reusable Workflows
Chapter 3/.github/workflows - Deployment Workflows
Chapter 7/GHA.Private.Templates/.github/workflows
GitHub Automation
- Org Workflows
Chapter 12/commandcentre.github/.github/workflows - Event Workflows
Chapter 14/EventHub.GitHub/.github/workflows - Slack Alert Action
Chapter 14/EventHub.GitHub/.github/actions/new-repository-alert-slack/action.yml - FinOps Workflows
Chapter 15/FinOps.GitHub/.github/workflows - Quality Workflows
Chapter 16/scratchpad/.github/workflows
Repository Catalog
- Repository Catalog UI
Chapter 14/My.GitHubOrg/scripts/index.js - Repository Data
Chapter 14/My.GitHubOrg
Other components
- GitHub Checks API
- Catalog Visitor
Connections 6
- Rich Checks → Annotation Validation: validates annotations
Chapter 9/richchecks1.0/index.js - Rich Checks → Image Validation: validates images
Chapter 9/richchecks1.0/index.js - Rich Checks → GitHub Checks API: creates or updates
Chapter 9/richchecks1.0/index.js - Node Server → Random Number App: imports app
Chapter 7/nodeapp/server.js - Catalog Visitor → Repository Catalog UI: views catalog
- Repository Catalog UI → Repository Data: loads repos.json
Chapter 14/My.GitHubOrg/scripts/index.js