Change to synchronous
This commit is contained in:
+1
-8
@@ -21902,14 +21902,7 @@ function searchFiles() {
|
||||
let filePath = core.getInput('filePath');
|
||||
let filePattern = core.getInput('filePattern');
|
||||
|
||||
glob(`${filePath}/${filePattern}`, {}, (err, files) => {
|
||||
if (err) {
|
||||
core.error(err);
|
||||
} else {
|
||||
core.debug(`Found ${files.length} files`);
|
||||
return files;
|
||||
}
|
||||
});
|
||||
return glob.sync(`${filePath}/${filePattern}`, {});
|
||||
}
|
||||
|
||||
run();
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -64,14 +64,7 @@ function searchFiles() {
|
||||
let filePath = core.getInput('filePath');
|
||||
let filePattern = core.getInput('filePattern');
|
||||
|
||||
glob(`${filePath}/${filePattern}`, {}, (err, files) => {
|
||||
if (err) {
|
||||
core.error(err);
|
||||
} else {
|
||||
core.debug(`Found ${files.length} files`);
|
||||
return files;
|
||||
}
|
||||
});
|
||||
return glob.sync(`${filePath}/${filePattern}`, {});
|
||||
}
|
||||
|
||||
run();
|
||||
|
||||
Reference in New Issue
Block a user