mirror of
https://github.com/wizarrrr/wizarr.git
synced 2026-08-02 16:27:28 -04:00
fix: get only first version line from pyproject.toml
This commit is contained in:
2
.github/actions/calver-automation/action.sh
vendored
2
.github/actions/calver-automation/action.sh
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user