Skip to content

Commit 70541f2

Browse files
authored
feat: added guard for release notes (#546)
Release process now includes validation to confirm that release notes are present before deployment can proceed; if release notes are missing, the release process will terminate with an error message Release workflow now requires an interactive confirmation step during the release process; explicit user approval is mandatory before any release actions commence
1 parent 03d6e96 commit 70541f2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

bin/release.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,10 @@ log_sha "VERSION (current)" "${VERSION}"
633633
log_sha "VERSION (release)" "v${BUMP_VERSION}"
634634
log_sha "RUN_KEY (saved)" "${RUN_KEY}"
635635

636+
if ! extract_release_notes_from_changelog "v${BUMP_VERSION}" "${WORKING_DIR}/CHANGELOG.md" >/dev/null; then
637+
die "CHANGELOG.md does not contain release notes for version 'v${BUMP_VERSION}'."
638+
fi
639+
636640
read -rp "Releasing version: '${BUMP_VERSION}', please confirm? [y/N] " answer
637641

638642
# Default 'N', cancel, if not 'y' or 'Y'

0 commit comments

Comments
 (0)