Merge pull request #10675 from stevenhorsman/release-repeat-abort

release: Abort if release version exists
This commit is contained in:
Steve Horsman 2024-12-19 11:55:44 +00:00 committed by GitHub
commit 99b9ef4e5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,6 +112,11 @@ function _create_new_release()
RELEASE_VERSION="$(_release_version)" RELEASE_VERSION="$(_release_version)"
if gh release view ${RELEASE_VERSION}; then
echo "Release already exists, aborting"
exit 1
fi
_create_our_own_notes _create_our_own_notes
# This automatically creates the ${RELEASE_VERSION} tag in the repo # This automatically creates the ${RELEASE_VERSION} tag in the repo