I am using a monorepo that has a folder structure as follows
+-- routes | +-- default-route | +-- frontent-route | +-- backend-route | +-- login-route
My configuration for the path-filtering is as below:
workflows: # The Main-Ci workflow is always triggered, regardless of the pipeline parameters. Main-Ci: jobs: # the path-filtering/filter job determines which pipeline # parameters to update. - path-filtering/filter: name: check-updated-files mapping: | # This regex does not trigger the continuation ^(?:\/[^\/\s]+)+route\/[^\/]*$ route-job true # This will continue the the build but does not identify which sub--folder of routes was changed routes/.* route-job true base-revision: << pipeline.git.branch >> config-path: .circleci/continue_config.yml
^(?:\/[^\/\s]+)+route\/[^\/]*$ route-job true
routes/.* route-job true
I need to be able to determine the specific route sub-folder that has been changed and pass that as the parameter. Rather than adding 97 mappings for all of our services in our routes folder.
Any assistance would be greatly appreciated.