Skip to content

Commit ae5c800

Browse files
committed
add source version check
1 parent cbea149 commit ae5c800

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,11 @@ jobs:
280280
valid = existing_tag.count("v") == 1 and existing_tag.count(".") == 2 and all(part.isdigit() for part in existing_tag.lstrip("v").split("."))
281281
if not valid:
282282
raise Exception(f"Current commit has invalid version tag {existing_tag}.")
283+
284+
source_version = Path('src/bioimageio/core/__init__.py').read_text().split('__version__ = \"')[1].split('\"')[0]
285+
if existing_tag != f"v{source_version}":
286+
raise Exception(f"Version tag {existing_tag} does not match source version {source_version}.")
287+
283288
new_version = existing_tag
284289
else:
285290
new_version = "${{ steps.tag-version.outputs.tag }}"

0 commit comments

Comments
 (0)