mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-06-27 22:06:03 +00:00
fix: failing test on Windows
This commit is contained in:
parent
321b4bb9c1
commit
12936b84e9
2 changed files with 5 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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, "/")),
|
||||
);
|
||||
}, []);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue