-
Notifications
You must be signed in to change notification settings - Fork 963
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
Reuse/import workflows #748
Comments
The biggest reason I'm currently staying on Travis CI for existing projects is that the same config for GitHub Actions is more verbose and boilerplaty. Would be nice if workflows could be reused across repos. |
This will be a game changer to manage workflows on a big org. |
This would be great. Something like Travis's import command. My workaround in GitHub actions is currently just a hard link in the to-be-tested repo. |
I ended up writing my own tool to store my workflows in a repo and easily download/update them elsewhere: |
Hi, I would like to use this functionality also from the same repo. |
IMO, the recently-released "Reusable Workflows" aren't really what this part of the community was looking for. As implemented, those appear to be just "workflows that can be called by other workflows with clearly defined input/output boundaries". The boilerplate still needs to be copied around to every repo, so they don't really do much to keep the per-repo yaml DRY. However, similar to the OP's case, tools like Gitlab CI can do something like this:
and then nothing else needs to be placed in Workflow Actions are sooo close. I think |
Completely agree with all of you on this. Not sure would this help everyone here, but have you seen this: github/roadmap#52 ? I was hoping to see this happening on Q2 next year but, now it's postponed to "Future" :/ We would be happy to use the "Reusable workflows" - but - we would need to consume them from a private repository, not a public one :/ (as this seems to be the current limitation atm: https://docs.github.com/en/actions/learn-github-actions/reusing-workflows) |
I hadn't seen github/roadmap#52, but that looks like it's a universal "run this workflow on all repos", which isn't quite what I want. I want to define a workflow per language or project type, then reuse the entire workflow yaml file across multiple repos. I think Reusable workflows are nice for some use cases, but because they don't inherit |
Thank you for your interest in the runner application and taking the time to provide your valuable feedback. We kindly ask you to redirect this feedback to the GitHub Community Support Forum which our team actively monitors and would be a better place to start a discussion for new feature requests in GitHub Actions. For more information on this policy please read our contribution guidelines. 😃 |
Describe the enhancement
Workflows tend to grow large once you start splitting some steps to run in separate jobs. Some other workflows are inherently large because they do a lot.
In many cases, I reuse the same workflow in multiple repositories and I wish I could just import it instead of copy-pasting it and manually updating it everywhere.
Code Snippet
I wish I could just use this in a workflow file:
and this would work as if I copied the whole file.
The text was updated successfully, but these errors were encountered: