Skip to content

Provide consistent example yml for reusable workflows #15480

@Layoric

Description

@Layoric

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/actions/using-workflows/reusing-workflows

What part(s) of the article would you like to see updated?

The docs currently state:

Reusable workflows are YAML-formatted files, very similar to any other workflow file. As with other workflow files, you locate reusable workflows in the .github/workflows directory of a repository. Subdirectories of the workflows directory are not supported.

But the example yml then presents the path:

uses: ./.github/actions/my-action

This doesn't follow the initial advice about location of workflow files, and creates confusion.

I'd like the example yml to reflect the written docs to reduce confusion please.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionsThis issue or pull request should be reviewed by the docs actions teamcontentThis issue or pull request belongs to the Docs Content team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions