File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,17 @@ jobs:
3535 uses : salsify/action-detect-and-tag-new-version@v2.0.1
3636 with :
3737 version-command : |
38- bash -o pipefail -c "uv version | awk '{ print \$2 }'"
38+ bash -o pipefail -c "grep '^ version =' pyproject.toml | awk -F '\"' '{ print \$2 }'"
3939
4040 - name : Bump version for developmental release
4141 if : " ! steps.check-version.outputs.tag"
4242 run : |
43- uv version --bump patch &&
44- version=$(uv version | awk '{ print $2 }') &&
45- uv version "$version.dev$(date +%s)"
43+ current_version=$(grep '^version =' pyproject.toml | awk -F '"' '{ print $2 }')
44+ IFS='.' read -r major minor patch <<< "$current_version"
45+ new_patch=$((patch + 1))
46+ dev_version="${major}.${minor}.${new_patch}.dev$(date +%s)"
47+ sed -i "s/^version = .*/version = \"$dev_version\"/" pyproject.toml
48+ echo "Bumped version from $current_version to $dev_version"
4649
4750 - name : Build package
4851 run : |
You can’t perform that action at this time.
0 commit comments