Skip to content

Commit c215a98

Browse files
committed
fix path in version-command
1 parent 837fce2 commit c215a98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ jobs:
227227
with:
228228
create-tag: false
229229
version-command: |
230-
python -c "from pathlib import Path;print(Path('bioimageio/core/__init__.py').read_text().split('__version__ = \"')[1].split('\"')[0])"
230+
python -c "from pathlib import Path;p = p_src if (p_src:=Path('src/bioimageio/core/__init__.py')).exists() else Path('bioimageio/core/__init__.py');print(p.read_text().split('__version__ = \"')[1].split('\"')[0])"
231231
232232
- name: Push tag
233233
id: tag-version

0 commit comments

Comments
 (0)