A repository calls its own reusable workflow file at .github/workflows/build.yml. Which uses: form is valid for a same-repo reusable workflow on a release tag v1.4.0?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Same-repo reusable workflows are referenced with a workflow path and ref (local ./ path or owner/repo/.github/workflows/...@ref). There is no workflow_call:// scheme; checkout does not call workflows; same-repo is allowed.
Full explanation below image
Full Explanation
Reusable workflows are YAML files triggered via workflow_call. Callers set jobs.<id>.uses to a workflow path with a git ref—commit SHA, tag, or branch. Same-repository calls commonly use ./.github/workflows/name.yml@ref or the fully qualified owner/repo path. A fictional workflow_call:// scheme does not exist. actions/checkout retrieves code; it does not invoke reusable workflows. Same-repo reusable workflows are fully supported and popular for monorepos. Cross-repo calls need access permissions. Prefer immutable SHAs for high-assurance pipelines, and remember nesting depth limits when reusable workflows call others.