File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -163,8 +163,8 @@ Specifying the Subkey
163163
164164The subkey in :func:`~ taskgraph.util.schema.resolve_keyed_by` is expressed in
165165dot path notation with each part of the path representing a nested dictionary.
166- If any part of the subkey is a list , each item in the list will be operated on.
167- For example, consider this excerpt of a task definition:
166+ If any part of the subkey is a list , you can use `[]` to operate on each item
167+ in the list . For example, consider this excerpt of a task definition:
168168
169169.. code- block:: yaml
170170
@@ -188,7 +188,7 @@ With the associated transform:
188188 @ transforms.add
189189 def resolve_artifact_paths(config, tasks):
190190 for task in tasks:
191- resolve_keyed_by(task, " worker.artifacts.path" , task[" label" ])
191+ resolve_keyed_by(task, " worker.artifacts[] .path" , task[" label" ])
192192 yield task
193193
194194In this example, Taskgraph resolves `` by- platform`` in both the * foo* and * bar*
You can’t perform that action at this time.
0 commit comments