Ability to update existing release body (#36)

* Ability to update existing release body

* Updated lib, fixed typo in workflow error message
This commit is contained in:
bomb-on
2020-01-04 06:13:45 +00:00
committed by Doug Tangren
parent 7a7960d4c7
commit 62eba970e0
4 changed files with 75 additions and 5 deletions

View File

@ -31,9 +31,9 @@ async function run() {
});
let rel = await release(config, new GitHubReleaser(gh));
if (config.input_files) {
const files = paths(config.input_files)
const files = paths(config.input_files);
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 upload(gh, rel.upload_url, path);