Call a shared workflow from another repository or workflow file.
Section: Reuse pipeline logic
GitHub reusable workflow
yaml
yaml
jobs:
ci:
uses: org/shared-workflows/.github/workflows/node-ci.yml@main
with:
node-version: '20'
secrets: inheritExplanation
Reusable workflows standardize CI across repositories and reduce duplicated YAML.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Reuse pipeline logic
GitHub Actions test matrix
Run the same job across multiple Node versions.
GitLab matrix variables
Expand one logical job into multiple combinations.
Cache npm dependencies in GitHub Actions
Reuse package manager downloads between runs.