From f374db1f3449a904fbc460276952dd4407c19f4c Mon Sep 17 00:00:00 2001 From: Gabriel Mass <12938273+gabmass@users.noreply.github.com> Date: Wed, 10 May 2023 15:56:50 +0100 Subject: [PATCH 1/2] Set an ovveride config-path From set-parameters.yml, we want to override the config path in the event that no mapping gets applied. --- .circleci/test-deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/test-deploy.yml b/.circleci/test-deploy.yml index d191c55..cab7350 100644 --- a/.circleci/test-deploy.yml +++ b/.circleci/test-deploy.yml @@ -17,6 +17,7 @@ jobs: mapping: | src/.* test-changes true - path-filtering/set-parameters: + config-path: ".circleci/test-deploy.yml" mapping: | src/commands/.* test-commands true .circleci/config.yml src/examples/.* test-examples true .circleci/test-deploy.yml From f53009d502cad895c64fdd28a3cfa5bf507376b6 Mon Sep 17 00:00:00 2001 From: Gabriel Mass <12938273+gabmass@users.noreply.github.com> Date: Wed, 10 May 2023 16:02:11 +0100 Subject: [PATCH 2/2] Add explnatory comments around config paths and mapping --- src/examples/example.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/examples/example.yml b/src/examples/example.yml index 937c989..9f96d06 100755 --- a/src/examples/example.yml +++ b/src/examples/example.yml @@ -17,7 +17,11 @@ usage: doc/.* build-docs true - path-filtering/filter: base-revision: main - config-path: "" + # This config-path file will only be used to continue the Pipeline if none of the changes + # satisfy the below mapping conditions. + config-path: .circleci/continue_config.yml + # Please note the two config files specified below cannot share the same job, workflow or command names. + # This is due to the fact that we're merging those into one file behind the scenes. mapping: | src/.* build-code true .circleci/build-code-config.yml doc/.* build-docs true .circleci/build-docs-config.yml