actions-marketplace-validations/action-config-levels

Load configuration and merge it by redefinition levels

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
patternsA list of path patterns to possible configuration files. This field contains a string with a list in YAML format. yes
merge_objectWay to merge objects [deep, overwrite, off]. - `deep` — merge objects deeply - `overwrite` — overwrite objects that are at the root - `off` — use the lowest level configuration file Default: 'deep'. deep
merge_arrayWay to merge arrays [concatenating, overwrite]. Also affects the type of array merge when merging objects. Default: 'concatenating'. concatenating
merge_plainWay to merge plain text [concatenating, overwrite]. Default: 'concatenating'. concatenating
output_propertiesOutput each property of the object as JSON. Default: 'false'. false
loopIf `loop` is defined, then the action is repeated as many times as the number of rows in the variable's content. All found mentions of `{{ item }}` in the pattern are replaced with a row from the `loop` variable. The iterative execution of the action returns the object as JSON, where the key contains a row, and the value is the result of the execution of the action according to the pattern. Also it has output for each row as a serialized key with value in JSON if `output_properties` is enabled.
loop_items_formatThe format in which the list is passed to the loop: - `text` — each row is an item of a list - `json` — list in JSON format - `yaml` — list in YAML format Default: 'text'. text
loop_items_keyObject path to the value that acts as the key. Helps set the key by which the result will be available if the item contains an object. Otherwise, the index is used as the key.
namedescription
resultMerged configuration as JSON or plain text.