mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-25 00:01:55 +00:00
fix cli in yaml mode
This commit is contained in:
+6
-1
@@ -622,7 +622,12 @@ async function push(
|
||||
`Adding ${getTypeStrFromPath(change.path)} ${change.path}`
|
||||
);
|
||||
}
|
||||
const obj = inferTypeFromPath(change.path, JSON.parse(change.content));
|
||||
const obj = inferTypeFromPath(
|
||||
change.path,
|
||||
change.path.endsWith(".yaml")
|
||||
? yamlParse(change.content)
|
||||
: JSON.parse(change.content)
|
||||
);
|
||||
const diff = microdiff({}, obj, { cyclesFix: false });
|
||||
await applyDiff(
|
||||
workspace.workspaceId,
|
||||
|
||||
Reference in New Issue
Block a user