Skip to content

Commit f39ed6d

Browse files
committed
Fix for major and minor version jumps
1 parent 0d42a7a commit f39ed6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/scripts/autobump-dependencies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ def _get_comparison_versions(self, current_version, latest_version):
371371
current_major, current_minor, current_patch = self._parse_and_split_version(comparison_current)
372372
latest_major, latest_minor, latest_patch = self._parse_and_split_version(comparison_latest)
373373

374-
# Major version jump adjustment to the zero version
375-
if int(latest_major) > int(current_major):
374+
# Major and minor version jump adjustment to the zero version
375+
if int(latest_major) > int(current_major) or int(latest_minor) > int(current_minor):
376376
comparison_current = f"{current_major}.{current_minor}.0"
377377

378378
return comparison_current, comparison_latest

0 commit comments

Comments
 (0)