Skip to content

Commit 3007cda

Browse files
authored
Merge pull request #3222 from st3penta/EC-1705
Fix bump-minor-version to treat version as major.minor integers
2 parents ab3d427 + 46d6ba9 commit 3007cda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ debug-version:
376376

377377
# It's not so hard to do this by hand, but let's save some typing
378378
bump-minor-version:
379-
@yq '(((. * 10) + 1) / 10)' -i $(VERSION_FILE) && \
379+
@yq '(. | to_string | split(".") | .[0] + "." + (.[1] | to_number + 1 | to_string))' -i $(VERSION_FILE) && \
380380
git add $(VERSION_FILE) && \
381381
git commit $(VERSION_FILE) \
382382
-m "Bump minor version to $$(cat $(VERSION_FILE))" \

0 commit comments

Comments
 (0)