What is the correct syntax to call a reusable workflow from a different repository?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Cross-repo workflow calls follow the path to the actual file: owner/repo/.github/workflows/filename.yml@ref
Full explanation below image
Full Explanation
Reusable workflows are referenced using 'uses: {owner}/{repo}/{path}@{ref}' where the path must be the full path to the workflow file from the repository root. Since workflows live in '.github/workflows/', the full syntax is 'owner/repo/.github/workflows/deploy.yml@main'. The '@ref' part can be a branch, tag, or SHA. Omitting '.github/' makes the path incorrect. HTTPS URLs are not valid 'uses' values. 'calls:' is not a valid GitHub Actions key. Same-repository reusable workflows use './.github/workflows/deploy.yml' (relative path with './').