mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-09-10 19:48:31 +08:00
fix: fix file closing issue (#629)
* fix: handle file closing gracefully * fix: failing test on Windows * format code using npm run fmt
This commit is contained in:
committed by
GitHub
parent
d5382d3e6f
commit
07a2257003
@@ -91,7 +91,10 @@ 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()),
|
||||
glob
|
||||
.sync(pattern)
|
||||
.filter((path) => statSync(path).isFile())
|
||||
.map((path) => path.replace(/\\/g, "/")),
|
||||
);
|
||||
}, []);
|
||||
};
|
||||
|
Reference in New Issue
Block a user