derberg / manage-files-in-multiple-repositories

GitHub Action that introduces support for global workflows. Global workflows are the one you update in just one repo and they are automatically updated in other repositories.
MIT License
52 stars 18 forks source link

Support for multiple branches #17

Closed magicmatatjahu closed 2 years ago

magicmatatjahu commented 3 years ago

Reason/Context

Hello! I love this action! Awesome work! In our organization, in some repos, we have multiple branches with these same workflows. For master/main (:trollface:) we use global-workflows-support action but for another (like prereleases) we have to update workflows manually.

Description

Please try answering few of those questions

Add info to action about which branches should be updated.

I don't think so.

Probably similar to repos_to_ignore option but in the opposite sense, something like for_branches. By default it will be master/main, but if given workflows should be also updated in the other branches, dev should add option:

for_branches: ['master', 'next', ...]

Awesome will be support for regex like **-release (all branches with suffix -release). Action should check that given branch exists in repo and make in loop PR for given branches.

What do you think?

derberg commented 2 years ago

@magicmatatjahu feature implemented and released