feat: reimplement pathAlias for yaml fields
All checks were successful
Build and Push Server / build-and-push (push) Successful in 7m4s
All checks were successful
Build and Push Server / build-and-push (push) Successful in 7m4s
This commit is contained in:
@@ -33,6 +33,13 @@ func Yaml(input string, block template.Block) (value any, error error) {
|
||||
continue
|
||||
}
|
||||
|
||||
for _, alias := range f.PathAliases {
|
||||
if value, ok := res[alias]; ok {
|
||||
out = utils.SetPathValue(f.Path, value, out)
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
if value, ok := renderUtils.GetValueFromPath(res, f.Path); ok {
|
||||
out = utils.SetPathValue(f.Path, value, out)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user