Skip to content

Commit 6dafa7f

Browse files
committed
fix: update change-map description
1 parent dfe0280 commit 6dafa7f

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

action.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,24 @@ inputs:
2020
default: "'{glob}'"
2121
filter-patterns:
2222
required: false
23-
description: >-
23+
description: |
2424
A map with keys ADDED, CHANGED, and DELETED as keys and a pattern as a value. The matching is done by checking if the file change starts with the pattern.
2525
default: |
2626
ADDED: "A\t"
2727
CHANGED: "M\t"
2828
DELETED: "D\t"
2929
change-map:
3030
required: true
31-
description: >-
32-
A multi-line map of changes to find. Each input in the change-map has two (or three with separateDeleted set to true) corresponding outputs. For a given key in change-map `code` there will be outputs `code`, a list of all the changed files, `any-code`, a boolean indicating if there were any changes that matched the glob filters, and `deleted-code` if `separateDeleted` is true. eg. python_files: {"globs": "*.py", "separateDeleted": false} requirements: {"globs": "requirements/*.txt"} py_and_requirements: {"globs": ["requirements/*.txt", "*.py"]} The separateDeleted boolean determines if we separate out deleted files or if they're included in the change list. #magic___^_^___line
31+
description: |
32+
A multi-line map of changes to find. Each input in the change-map has two (or three with separateDeleted set to true) corresponding outputs.
33+
For a given key in change-map `code` there will be outputs `code`, a list of all the changed files, `any-code`, a boolean indicating if there were any changes that matched the glob filters, and `deleted-code` if `separateDeleted` is true.
34+
35+
Example:
36+
python_files: {"globs": "*.py", "separateDeleted": false}
37+
requirements: {"globs": "requirements/*.txt"}
38+
py_and_requirements: {"globs": ["requirements/*.txt", "*.py"]}
39+
40+
The separateDeleted boolean determines if we separate out deleted files or if they're included in the change list.
3341
outputs:
3442
any-matches:
3543
description: 'A boolean value indicating if any glob matches were found'

0 commit comments

Comments
 (0)