From a549e0bdadd4ddc6e3d3bdca6d4c1a2201ae30e6 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Mon, 29 Aug 2022 23:23:54 +0200 Subject: [PATCH] fix: don't recreate release [skip ci] --- release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.sh b/release.sh index 7788097..54090cf 100755 --- a/release.sh +++ b/release.sh @@ -18,7 +18,7 @@ fi npm install -g github-release-cli -if [[ $( gh release view "${RELEASE_VERSION}" 2>&1 ) =~ "release not found" ]]; then +if [[ $( gh release view --repo "${OWNER}/${REPOSITORY}" "${RELEASE_VERSION}" 2>&1 ) =~ "release not found" ]]; then echo "Creating release '${RELEASE_VERSION}'" gh release create --repo "${OWNER}/${REPOSITORY}" "${RELEASE_VERSION}" fi