mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-05 00:03:08 +00:00
fix: Do not ignore file resources with json file ext (#4562)
This commit is contained in:
+2
-2
@@ -618,8 +618,8 @@ export async function elementsToMap(
|
||||
for await (const entry of readDirRecursiveWithIgnore(ignore, els)) {
|
||||
if (entry.isDirectory || entry.ignored) continue;
|
||||
const path = entry.path;
|
||||
if (json && path.endsWith(".yaml")) continue;
|
||||
if (!json && path.endsWith(".json")) continue;
|
||||
if (json && path.endsWith(".yaml") && !isFileResource(path)) continue;
|
||||
if (!json && path.endsWith(".json") && !isFileResource(path)) continue;
|
||||
const ext = json ? ".json" : ".yaml";
|
||||
if (!skips.includeSchedules && path.endsWith(".schedule" + ext)) continue;
|
||||
if (!skips.includeUsers && path.endsWith(".user" + ext)) continue;
|
||||
|
||||
Reference in New Issue
Block a user