Skip to content

Commit

Permalink
Doc and example updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Markl121 committed Jul 6, 2023
1 parent 2dadd26 commit e27a233
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .circleci/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- path-filtering/set-parameters:
mapping: |
src/.* test-changes true
src/examples/.* string-example "value"
- path-filtering/set-parameters:
config-path: ".circleci/test-deploy.yml"
mapping: |
Expand Down
3 changes: 2 additions & 1 deletion src/commands/set-parameters.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
description: >
Generates a set of pipeline parameters from `mapping` at
`output-path`.
`output-path`. Python is required to run this command.
parameters:
base-revision:
Expand All @@ -16,6 +16,7 @@ parameters:
Mapping of path regular expressions to pipeline parameters and
values. One mapping per line, whitespace-delimited. If duplicate
parameter keys are found, the last matching pattern will apply.
String values must be double-quoted.
output-path:
type: string
default: "/tmp/pipeline-parameters.json"
Expand Down
3 changes: 2 additions & 1 deletion src/examples/example.yml → src/examples/path_filtering.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ usage:
version: 2.1
setup: true
orbs:
path-filtering: circleci/path-filtering@0.0.1
path-filtering: circleci/path-filtering@0.1.7
workflows:
generate-config:
jobs:
Expand All @@ -15,6 +15,7 @@ usage:
mapping: |
src/.* build-code true
doc/.* build-docs true
src/tests/.* string-parameter "value"
- path-filtering/filter:
base-revision: main
# This config-path file will only be used to continue the Pipeline if none of the changes
Expand Down
2 changes: 1 addition & 1 deletion src/jobs/filter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ parameters:
description: >
Mapping of path regular expressions to pipeline parameters and
values. If the value is a file, then it will be loaded from the disk.
One mapping per line, whitespace-delimited.
One mapping per line, whitespace-delimited. String values must be double-quoted.
config-path:
type: string
default: ".circleci/continue_config.yml"
Expand Down

0 comments on commit e27a233

Please sign in to comment.