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: inherit
Explanation

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.
OpenIn sheetyamlsame section
GitLab matrix variables
Expand one logical job into multiple combinations.
OpenIn sheetyamlsame section
Cache npm dependencies in GitHub Actions
Reuse package manager downloads between runs.
Upload build artifacts
Publish files from one job for later download or deploy.
GitLab cache vs artifacts
Use cache for dependencies and artifacts for outputs.