Skip to content

Commit c21ac89

Browse files
author
Emile Filteau
committed
Fix glob usage
1 parent 72981b8 commit c21ac89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ const validUsers = (core.getInput("api_users") || process.env.API_USERS || '')
88
.split(",")
99
.filter((u) => !!u);
1010

11-
const files = globSync([`${path}.{yml,yaml}`]);
11+
const files = globSync([`${path}/*.{yml,yaml}`]);
1212

1313
files
1414
.map((file) => {
1515
try {
16-
const content = yaml.load(fs.readFileSync(`${path}/${file}`, "utf8"));
16+
const content = yaml.load(fs.readFileSync(file, "utf8"));
1717
return [file, content];
1818
} catch (error) {
1919
fail(`Error parsing file ${file} : ${error}`);

0 commit comments

Comments
 (0)