Skip to content

Commit

Permalink
ci: fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Jan 18, 2024
1 parent b901832 commit a45d1c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ jobs:
current_semver = re.match(semver_pattern, current_version)
groups = ['major', 'minor', 'patch']
greater = sum([next_semver.group(grp) > current_semver.group(grp) for grp in groups])
equal = sum([next_semver.group(grp) == current_semver.group(grp) for grp in groups])
if not (greater == 1 and equal == 2):
if not (greater == 1):
raise ValueError(f"Next version must only increment one number at a time. Current version: {current_version}. Proposed next version: {next_version}")
- name: Get release notes, update changelog & version file
Expand Down

0 comments on commit a45d1c7

Please sign in to comment.