Replies: 9 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.
-
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