Merge pull request #520 from ganeshmaharaj/release-tag-retry

release: Allow re-tries of tagging and github releases
This commit is contained in:
James O. D. Hunt
2019-05-21 07:57:27 +01:00
committed by GitHub

View File

@@ -145,7 +145,7 @@ create_github_release() {
tag=${2:-}
[ -d "${repo_dir}" ] || die "No repository directory"
[ -n "${tag}" ] || die "No tag specified"
if ! "${hub_bin}" release | grep -q "^${tag}$"; then
if ! "${hub_bin}" release show "${tag}"; then
info "Creating Github release"
if [[ "$tag" =~ "-rc" ]]; then
rc_args="-p"