Merge branch 'zumalabs-handle-upload-errors'
This commit is contained in:
commit
5eea929306
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -53,8 +53,12 @@ async function run() {
|
|||||||
if (files.length == 0) {
|
if (files.length == 0) {
|
||||||
console.warn(`🤔 ${config.input_files} not include valid file.`);
|
console.warn(`🤔 ${config.input_files} not include valid file.`);
|
||||||
}
|
}
|
||||||
files.forEach(async path => {
|
await Promise.all(
|
||||||
await upload(gh, rel.upload_url, path);
|
files.map(async path => {
|
||||||
|
await upload(gh, rel.upload_url, path);
|
||||||
|
})
|
||||||
|
).catch(error => {
|
||||||
|
throw error;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
console.log(`🎉 Release ready at ${rel.html_url}`);
|
console.log(`🎉 Release ready at ${rel.html_url}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user