mirror of
https://gitea.com/actions/gitea-release-action.git
synced 2024-11-10 02:11:07 +07:00
fix
This commit is contained in:
parent
e5dc3bb694
commit
9ed6f482bf
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -40971,7 +40971,7 @@ async function createOrGetRelease(client, owner, repo, body) {
|
|||||||
function paths(patterns) {
|
function paths(patterns) {
|
||||||
return patterns.reduce((acc, pattern) => {
|
return patterns.reduce((acc, pattern) => {
|
||||||
return acc.concat(
|
return acc.concat(
|
||||||
sync(pattern).filter((path) => statSync(path).isFile())
|
sync(pattern).filter((path) => external_fs_.statSync(path).isFile())
|
||||||
);
|
);
|
||||||
}, []);
|
}, []);
|
||||||
};
|
};
|
||||||
|
2
main.js
2
main.js
@ -84,7 +84,7 @@ async function createOrGetRelease(client, owner, repo, body) {
|
|||||||
function paths(patterns) {
|
function paths(patterns) {
|
||||||
return patterns.reduce((acc, pattern) => {
|
return patterns.reduce((acc, pattern) => {
|
||||||
return acc.concat(
|
return acc.concat(
|
||||||
glob.sync(pattern).filter((path) => statSync(path).isFile())
|
glob.sync(pattern).filter((path) => fs.statSync(path).isFile())
|
||||||
);
|
);
|
||||||
}, []);
|
}, []);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user