fix: get only first version line from pyproject.toml

This commit is contained in:
Matthieu B
2025-09-06 11:08:02 +02:00
parent b2b2560c3d
commit f8dfa67f40

View File

@@ -26,7 +26,7 @@ log_error() {
# Get current version from pyproject.toml
get_current_version() {
grep '^version = ' pyproject.toml | sed 's/version = "\(.*\)"/\1/'
grep '^version = ' pyproject.toml | head -1 | sed 's/version = "\(.*\)"/\1/'
}
# Calculate next CalVer version (YYYY.M.PATCH)