MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / findWorkflows

Function findWorkflows

apps/api/scripts/lint-meta/context.ts:64–86  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

62}
63
64export function findWorkflows(dir: string): string[] {
65 const out: string[] = [];
66 let entries: string[];
67
68 try {
69 entries = readdirSync(dir);
70 } catch {
71 return out;
72 }
73
74 for (const entry of entries) {
75 const full = join(dir, entry);
76
77 if (
78 statSync(full).isFile() &&
79 (entry.endsWith(".yml") || entry.endsWith(".yaml"))
80 ) {
81 out.push(full);
82 }
83 }
84
85 return out;
86}
87
88/*
89 * Workflows live at the app root when this template is a standalone repo, but

Callers 2

buildContextFunction · 0.70
lint-meta.test.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected