mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-30 23:06:27 +00:00
Merge pull request #10675 from stevenhorsman/release-repeat-abort
release: Abort if release version exists
This commit is contained in:
commit
99b9ef4e5a
@ -63,7 +63,7 @@ function _create_our_own_notes()
|
||||
libseccomp_version=$(get_from_kata_deps ".externals.libseccomp.version")
|
||||
libseccomp_url=$(get_from_kata_deps ".externals.libseccomp.url")
|
||||
|
||||
cat >> /tmp/our_notes_${RELEASE_VERSION} <<EOF
|
||||
cat >> /tmp/our_notes_${RELEASE_VERSION} <<EOF
|
||||
## Survey
|
||||
|
||||
Please take the Kata Containers survey:
|
||||
@ -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