Interview Prep/GitHub Actions/Custom Actions & Reusable Workflows

What is a reusable workflow, and how is it called?

BeginnerConceptCustom Actions & Reusable Workflows
Answer

A workflow with on: workflow_call, called as a job:

jobs:
  deploy-dev:
    uses: ./.github/workflows/deploy.yml          # same repo
    with:
      environment: dev
      image-digest: ${{ needs.build.outputs.digest }}
    secrets: inherit
  deploy-shared:
    uses: devopsshack/platform-workflows/.github/workflows/deploy-eks.yml@v3   # another repo

A calling job can only contain uses, with, secrets, needs, if, strategy, permissions and concurrency, not runs-on or steps.

All GitHub Actions questions Roadmap: GitHub Actions

More on Custom Actions & Reusable Workflows