Skip to content

Commit aa00826

Browse files
authored
MRG: Merge pull request #117 from octue/fix/version-consistency-check
FIX: Fix version consistency check
2 parents 573323f + ef5a2de commit aa00826

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/scripts/check-version-consistency.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ def release_branch_version_matches_setup_version(setup_version, full_branch_name
5252
setup_version = get_setup_version()
5353
full_branch_name = get_branch_name()
5454

55+
if full_branch_name == "main":
56+
print(f"The branch is not a release branch: 'main'.")
57+
sys.exit(0)
58+
5559
try:
5660
if release_branch_version_matches_setup_version(setup_version, full_branch_name):
5761
print(f"Release branch name matches setup.py version: {setup_version!r}.")

0 commit comments

Comments
 (0)