mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-06-28 06:16:01 +00:00
feat: warn file invalid when upload
This commit is contained in:
parent
d651ef48cb
commit
d44577d2eb
1 changed files with 5 additions and 1 deletions
|
@ -31,7 +31,11 @@ async function run() {
|
||||||
});
|
});
|
||||||
let rel = await release(config, new GitHubReleaser(gh));
|
let rel = await release(config, new GitHubReleaser(gh));
|
||||||
if (config.input_files) {
|
if (config.input_files) {
|
||||||
paths(config.input_files).forEach(async path => {
|
const files = paths(config.input_files)
|
||||||
|
if (files.length == 0) {
|
||||||
|
console.warn(`⚠️ ${config.input_files} not include valid file.`)
|
||||||
|
}
|
||||||
|
files.forEach(async path => {
|
||||||
await upload(gh, rel.upload_url, path);
|
await upload(gh, rel.upload_url, path);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue