We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 988a608 commit 2302daeCopy full SHA for 2302dae
src/main.ts
@@ -209,7 +209,8 @@ async function run(context: typeof github.context): Promise<void> {
209
console.log(line);
210
let workflow: Workflow = { filePath: wf, actions: Array<Action>() };
211
workflowFiles.push(workflow);
212
- console.log("\nReading:" + workflow.filePath);
+ if (fs.existsSync(workflow.filePath)) {
213
+ console.log("\nReading:" + workflow.filePath);
214
try {
215
let yaml: any = yamlParse.load(
216
fs.readFileSync(workflow.filePath, "utf-8"),
@@ -232,6 +233,8 @@ async function run(context: typeof github.context): Promise<void> {
232
233
}
234
console.log(error);
235
236
+ }
237
+
238
});
239
240
//iterate through all the workflow files found
0 commit comments