Complete GitHub Actions toolkit with generation and validation capabilities for workflows, custom actions, and CI/CD configurations
97
97%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
A platform engineering team manages ten microservices that all deploy to the same Kubernetes cluster. Currently each repository copy-pastes a 150-line deployment workflow. When the deployment process changes, engineers must manually update all ten repositories — a process that regularly leads to drift and outages when some repositories are missed.
The team wants to extract the shared deployment logic into a single reusable workflow that can be called from each microservice repository. The reusable workflow should accept the target environment (staging or production) as a parameter, receive a deploy token as a secret, and expose the deployed URL as an output for downstream jobs in the calling workflow. The calling workflow lives in the same repository (.github/workflows/deploy.yml) and should wire up the reusable workflow correctly.
Produce two YAML files:
.github/workflows/reusable-deploy.yml — the reusable workflow definition.github/workflows/deploy.yml — a caller workflow that invokes the reusable workflowBoth files should demonstrate the correct pattern for shared deployment workflows in GitHub Actions.