Replies: 11 comments 17 replies
-
In another community thread, @jenschelkopf shared that they're working on something similar to this:
And later in the thread:
As far as I'm aware there's no public roadmap item for this yet. |
Beta Was this translation helpful? Give feedback.
-
Hi @umarcor and @PathogenDavid, we just released the ability to reference a local reusable workflow: https://github.blog/changelog/2022-01-25-github-actions-reusable-workflows-can-be-referenced-locally |
Beta Was this translation helpful? Give feedback.
-
Hello, sorry for the bump, any updates regarding this? |
Beta Was this translation helpful? Give feedback.
-
Is this available in GitHub Enterprise, and if so - what version? |
Beta Was this translation helpful? Give feedback.
-
I can confirm that as of today we still need to put reusable workflows into |
Beta Was this translation helpful? Give feedback.
-
It would be great if we could do something like: jobs:
build-images:
strategy:
matrix:
target: [frontend, backend]
uses: myorg/myproj-${{ matrix.target }}/.github/workflows/build.yml@main |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
My use case is that I have a subrepo (like a submodule but better) for a lot of shared code. I would like to be able to reference reusable workflows by arbitrary relative path to get the version that's in the shared subrepo. At the moment I have to use the repo link and remember to update the |
Beta Was this translation helpful? Give feedback.
-
We're moving from Azure DevOps to GitHub. In ADO we have an extensive library of pipeline templates that you are free to organize however you want. The limitation that your reusable workflow has to be in .github/workflows seems very odd. Any news on this? |
Beta Was this translation helpful? Give feedback.
-
This limitation makes it difficult to use GitHub Actions to test GitHub Actions itself. We have a repo with reusable workflows that has grown big over time, and the workflows are currently defined under Now, we would like to add some CI checks for the reusable workflows. While we can do this, it's a bit misleading to put the production code and the test code under the same roof. Any ETA for when this basic functionality will be supported? |
Beta Was this translation helpful? Give feedback.
-
Any news on this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
and
https://github.com/hdl/containers/actions/runs/1469619022
and
https://github.com/hdl/containers/actions/runs/1469617309
It would be desirable if the syntax was changed to
[{owner}/{repo}/]{path}/{filename}.yml[@{ref}]
.Refs:
Beta Was this translation helpful? Give feedback.
All reactions