SvanBoxel / organization-workflows

Need to centrally manage and run Actions workflows across multiple repositories? This app does it for you.
ISC License
133 stars 33 forks source link

Feature Request - Add an option to include too in organization-workflows-settings.yml #37

Open vikas027 opened 3 years ago

vikas027 commented 3 years ago

At the moment, at the time of installing the app, we can choose which repositories to choose and then optionally exclude them in organization-workflows-settings.yml.

It would be great if we can have an include (like below) option too in organization-workflows-settings.yml so that we can give the app full access to all repositories and then manage the include and exclude list from the .github repo itself.

workflows_repository: our-organization-workflows
include_workflows_repository: false
include:
  repositories:
  - 'my-repo'
exclude:
  repositories:
  - '*'

This will help us to manage the central workflows using the git repository itself i.e. devs will not need access to the organization to make changes to the installed app.

SvanBoxel commented 3 years ago

Hi @vikas027. Thank you for your suggestion. How do you envision these two being combined? i.e. what if a repository is included in both the include and the exclude list?

vikas027 commented 3 years ago

What if a repository is included in both the include and the exclude list?

Hey @SvanBoxel , Thanks for looking into this. Well, if we have if the same repo in both include and and exclude, one could take precedence over the other. I'd recommend include to have a higher priority than exclude so that one could exclude all and include only a few (as in my use case above). What do you think?