Skip to content

Commit

Permalink
Merge 86dd4c8 into feda25d
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler committed Jul 26, 2022
2 parents feda25d + 86dd4c8 commit 804eabf
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions scripts/draft-release
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
const { promisify } = require('util');
const semver = require('semver');
const exec = promisify(require('child_process').exec);

let incType = process.argv[2];

(async () => {
Expand Down Expand Up @@ -34,11 +35,18 @@ let incType = process.argv[2];
console.log(`version moving from ${cleanVersion} to ${newVersion}`);

const message = `v${newVersion}\n\n${list.join('\n')}`;

const { stdout: tagURL } = await exec(
`hub release create -d -m "${message}" v${newVersion}`
);

console.log(`draft created!`);
console.log(tagURL);
try {
const { stdout: tagURL } = await exec(
`hub release create -d -m "${message}" v${newVersion}`
);

console.log(`draft created!`);
console.log(tagURL);
} catch (e) {
console.error(
'there was an issue creating draft, just do it manually https://github.com/adsabs/bumblebee/releases/new'
);
console.log(`
${message}`);
}
})();

0 comments on commit 804eabf

Please sign in to comment.