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

View File

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