mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-31 23:36:12 +00:00
Merge pull request #10675 from stevenhorsman/release-repeat-abort
release: Abort if release version exists
This commit is contained in:
commit
99b9ef4e5a
@ -112,6 +112,11 @@ function _create_new_release()
|
||||
|
||||
RELEASE_VERSION="$(_release_version)"
|
||||
|
||||
if gh release view ${RELEASE_VERSION}; then
|
||||
echo "Release already exists, aborting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
_create_our_own_notes
|
||||
|
||||
# This automatically creates the ${RELEASE_VERSION} tag in the repo
|
||||
|
Loading…
Reference in New Issue
Block a user