actions-marketplace-validations/action-config-levels
Load configuration and merge it by redefinition levels
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| patterns | A list of path patterns to possible configuration files. This field contains a string with a list in YAML format. | yes | — |
| merge_object | Way 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_array | Way to merge arrays [concatenating, overwrite]. Also affects the type of array merge when merging objects. Default: 'concatenating'. | — | concatenating |
| merge_plain | Way to merge plain text [concatenating, overwrite]. Default: 'concatenating'. | — | concatenating |
| output_properties | Output each property of the object as JSON. Default: 'false'. | — | false |
| loop | If `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_format | The 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_key | Object 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. | — | — |
Outputs
| name | description |
|---|---|
| result | Merged configuration as JSON or plain text. |