fix: don't recreate release [skip ci]

This commit is contained in:
Baptiste Augrain 2022-08-29 23:23:54 +02:00
parent 04f80fcd48
commit a549e0bdad

View File

@ -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