dorny / paths-filter

Conditionally run actions based on files modified by PR, feature branch or pushed commits
MIT License
1.98k stars 230 forks source link

Import filters file from another repository #196

Open Tchekda opened 1 year ago

Tchekda commented 1 year ago

Hello, Inside our organization, we use a centralized repository for all our reusable Github actions. (OUR_ORG/pipelines in the example). One of those reusable workflows uses the paths-filter action, and we want to have a file in OUR_ORG/pipelines with the default filters for all our projects. (The file is in .github/file-filters.yml in the example)

Not being able to load a centralized filter file is preventing us from having a pipeline that would work the same way across all our repositories. Is there a way to do something on our end to make this happen or does it need to be fixed on your side ?

ElviaSober commented 12 months ago

Hi,

Your syntax doesn't seem to be fully correct in the examples that you have given. You can check here: https://docs.github.com/en/actions/using-workflows/reusing-workflows#creating-a-reusable-workflow for the syntax.

In short,

Tchekda commented 1 month ago

Hello, Sorry to bring it back after 1 year, finally got some time to work on it ;) I tried your second suggestion and it still doesn't work... The config file is available at ORG/pipelines/.github/path-filter.yml on the main branch and I am getting the following error on the app repo

Error: Configuration file 'ORG/pipelines/.github/file-filters.yml@main' not found

image image