Error AtlasError Documentation and Resolution

GitHub Actions reusable workflow uses does not allow contexts or expressions

You cannot use contexts or expressions in this keyword.

GitHub Actions rejected a reusable workflow reference because jobs.<job_id>.uses must be a static workflow path and ref, not an expression-driven value.

You cannot use contexts or expressions in this keywordconfiguration
You cannot use contexts or expressions in this keyword.
  • The workflow tries to build the reusable workflow reference dynamically with expressions.
  • A context value was inserted into jobs.<job_id>.uses.
  • The reusable workflow path or ref was made configurable in a way GitHub does not support.
  1. Replace the dynamic expression with a static reusable workflow reference.
  2. Choose the target reusable workflow and ref explicitly in YAML.
  3. Move conditional selection logic elsewhere instead of trying to interpolate it into jobs.<job_id>.uses.
GitHub Docs: Workflow syntax for GitHub Actions
GitHub Actions jobs uses cannot use contexts or expressions | Error Atlas