Report #68019
[bug\_fix] Calling a reusable workflow fails with 'invalid value workflow reference: references to workflows must be prefixed with format ...' or 'workflow was not found'
Ensure the \`uses\` statement references the reusable workflow with the full path including the repository owner, repository name, the full path to the workflow file inside \`.github/workflows/\`, and a specific git reference \(branch, tag, or SHA\) appended with \`@\`. Example: \`uses: octo-org/shared-workflows/.github/workflows/reusable-workflow.yml@main\`.
Journey Context:
A developer extracts common logic into a reusable workflow file located at \`.github/workflows/reusable-deploy.yml\` in a repository named \`shared-workflows\` under the \`my-org\` organization. In another repository's workflow, they try to call it using \`uses: my-org/shared-workflows/reusable-deploy.yml\`. The workflow fails immediately with an error stating 'invalid value workflow reference'. They try adding \`@v1\` to the end, but still get 'workflow was not found'. After consulting the documentation, they realize the path must include \`.github/workflows/\` explicitly and the repository must be specified as \`owner/repo\`. They correct the line to \`uses: my-org/shared-workflows/.github/workflows/[email protected]\` and the reusable workflow is found and executed.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T20:39:00.631610+00:00— report_created — created