Skip to content

Allow reusable workflows to be located at arbitrary locations and be local #1493

@umarcor

Description

@umarcor

Describe the enhancement

Although the documentation does not specify the limitation, it seems that reusable workflows must be located in .github/workflows. Moreover, specifying the version is necessary. Therefore, it is not possible to have a reusable workflow in the current branch.

See

https://docs.github.com/en/actions/learn-github-actions/reusing-workflows#calling-a-reusable-workflow
You reference reusable workflow files using the syntax:

{owner}/{repo}/{path}/{filename}@{ref}

and

https://github.com/hdl/containers/actions/runs/1469619022

invalid value workflow reference: references to workflows must be rooted in '.github/workflows'

and

https://github.com/hdl/containers/actions/runs/1469617309

invalid value workflow reference: no version specified

It would be desirable if the syntax was changed to [{owner}/{repo}/]{path}/{filename}.yml[@{ref}].

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions