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 72981b8 commit c21ac89Copy full SHA for c21ac89
index.js
@@ -8,12 +8,12 @@ const validUsers = (core.getInput("api_users") || process.env.API_USERS || '')
8
.split(",")
9
.filter((u) => !!u);
10
11
-const files = globSync([`${path}.{yml,yaml}`]);
+const files = globSync([`${path}/*.{yml,yaml}`]);
12
13
files
14
.map((file) => {
15
try {
16
- const content = yaml.load(fs.readFileSync(`${path}/${file}`, "utf8"));
+ const content = yaml.load(fs.readFileSync(file, "utf8"));
17
return [file, content];
18
} catch (error) {
19
fail(`Error parsing file ${file} : ${error}`);
0 commit comments