Skip to content

Commit 3ada1ea

Browse files
committed
Parse DJ_VERSION from pyproject.toml in CI
1 parent 1a3ed90 commit 3ada1ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/development.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
python-version: ${{matrix.py_ver}}
3535
- name: Validate version and release notes
3636
run: |
37-
DJ_VERSION=$(grep -oP '\d+\.\d+\.\d+' datajoint/version.py)
37+
DJ_VERSION=$(grep -m 1 version pyproject.toml | grep -oP '\d+\.\d+\.\d+')
3838
RELEASE_BODY=$(python3 -c \
3939
'print(open("./CHANGELOG.md").read().split("\n\n")[1].split("\n", 1)[1])' \
4040
)
@@ -167,7 +167,7 @@ jobs:
167167
python-version: ${{matrix.py_ver}}
168168
- name: Determine package version
169169
run: |
170-
DJ_VERSION=$(grep -oP '\d+\.\d+\.\d+' datajoint/version.py)
170+
DJ_VERSION=$(grep -m 1 version pyproject.toml | grep -oP '\d+\.\d+\.\d+')
171171
RELEASE_BODY=$(python -c \
172172
'print(open("./CHANGELOG.md").read().split("\n\n")[1].split("\n", 1)[1])' \
173173
)

0 commit comments

Comments
 (0)