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

[QUESTION] - Repository blacklist #25

Closed alexandresavicki closed 3 years ago

alexandresavicki commented 3 years ago

There's a way to exclude a list of repositories to not run workflow?

I running workflow for an organization that's have some git ops repositories, this repositories are receiving push commits in to deffault branch at any time by some automation, so these repositories doesn't need run workflow.

I'm running my workflow with configuration bellow:

on:
  push:
    branches: [ $default-branch ]
  pull_request:
    branches: [ $default-branch ]

So i try to setup to run only on pull_request :

on:
  pull_request:
    branches: [ $default-branch ]

But doesn't work, it's still running for push events for any branch.

My main problem with this is that can exceed my Action runs quota easily.

SvanBoxel commented 3 years ago

Hi @alexandresavicki!

Yes, this is one of the config options I want to add to the app configuration.

Basically an include/exclude option that accepts an array of that repository names. Would that fit your use case?

SvanBoxel commented 3 years ago

This functionality is introduced in PR #26 and released with release 1.2.0 of this app. 🎉

alexandresavicki commented 3 years ago

Hi @SvanBoxel... It's work like a charm :+1:

Thanks a lot for this feature.