mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-09-11 20:15:46 +08:00
fix: revert fs:readableWebStream
change (#632)
* Revert "fix: fix file closing issue (#629)"
This reverts commit 07a2257003
.
* fix: revert `fh.readableWebStream` change
Signed-off-by: Rui Chen <rui@chenrui.dev>
---------
Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
@@ -91,10 +91,7 @@ const parseMakeLatest = (
|
||||
export const paths = (patterns: string[]): string[] => {
|
||||
return patterns.reduce((acc: string[], pattern: string): string[] => {
|
||||
return acc.concat(
|
||||
glob
|
||||
.sync(pattern)
|
||||
.filter((path) => statSync(path).isFile())
|
||||
.map((path) => path.replace(/\\/g, "/")),
|
||||
glob.sync(pattern).filter((path) => statSync(path).isFile()),
|
||||
);
|
||||
}, []);
|
||||
};
|
||||
|
Reference in New Issue
Block a user