From 6e8350f71b8f392d76b7193e5dae5614f6739be2 Mon Sep 17 00:00:00 2001 From: Ganesh Maharaj Mahalingam Date: Thu, 16 May 2019 13:36:50 -0700 Subject: [PATCH] release: Allow re-tries of tagging and github releases hub tool from github lets you show a particular tag that might exist in the repostiory. Switching our tag checking logic to use that instead of listing all tags and grepping for the one we want. For some reason the existing grep logic always fails to return the right code and always lands on the portion of the code to generate a new tag. Fixes: #519 Signed-off-by: Ganesh Maharaj Mahalingam --- release/tag_repos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/tag_repos.sh b/release/tag_repos.sh index 53b765bf1a..a811041a42 100755 --- a/release/tag_repos.sh +++ b/release/tag_repos.sh @@ -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"