Github Actions workflow code duplication

Hello, my team is considering using GitHub actions and we have a portfolio of 60+ microservices, each one in their own separate repo. Services are implemented in Java and nodeJS, and the workflow for all Java services is pretty much identical, same applies to NodeJS services. Then, if we want to use Github Actions, will we need to duplicate the workflow YAML file in each repo? or is there a templating strategy we can use ?

thanks

1 Like

Maybe this page on sharing workflows within the organization is useful?

1 Like

You should also look into “composite workflows” or “composite actions”.

Implementing more (and more) DRY principal support/functionality for GitHub actions is on the roadmap.

1 Like