Replace with YAML
List of YAML parameters and examples for the "Replace" action
提示
YAML parameters for Replace
名称 | 类型 | 描述 |
---|---|---|
action 必填 | String | The ID of the action. |
type 必填 | String | The type of the action. Should be set to REPLACE . |
replacements 必填 | Replacement[] | The list of pairs of strings for replacement. |
local_path | String | The path in the filesystem. |
YAML example for Replace
actions:
- action: "Replace values"
type: "REPLACE"
local_path: "/"
replacements:
- replace_from: "[ENV]"
replace_to: "stage"
- replace_from: "multiline"
replace_to: "Replace\nmultiline\nstring"