Open Tchekda opened 1 year 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,
.github/
instead of ./github/
and all workflows should be in a .github/workflows/
directory (requirement from github, see the link above).filters: OUR_ORG/pipelines/.github/workflows/file-filters.yml@main
. Instead of that you could checkout the OUR_ORG/pipelines
repository in a previous step in the same job and then you should be able to use .github/workflows/file-filters.yml
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
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 thepaths-filter
action, and we want to have a file inOUR_ORG/pipelines
with the default filters for all our projects. (The file is in.github/file-filters.yml
in the example)filters: ./github/file-filters.yml
, it doesn't work because that file doesn't exist inside the repository from which the reusable workflow is called.filters: OUR_ORG/pipelines/./github/file-filters.yml
, it doesn't work either, seems like it doesn't understand that it is a repository reference and tries to load the path locally.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 ?