Skip to content

Commit 439fb5a

Browse files
committed
ci(Release Note Generator): Abort the generation if the current tag matches the latest tag
1 parent db86280 commit 439fb5a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

devscripts/create_release_notes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ def main() -> int:
130130
print_warning("No tags found in the repository! Creating release notes from the first commit onwards.")
131131
print_info(f"Latest Tag: {latest_tag!r}")
132132

133+
# Check if the latest tag is the same as the current tag
134+
if latest_tag == TAG_NAME:
135+
print_critical_error(f"The latest tag is the same as the current tag {TAG_NAME!r}. Skipping the release notes generation.")
136+
133137
# Current date
134138
CURRENT_DATE: str = time.strftime("%Y-%m-%d")
135139

0 commit comments

Comments
 (0)