Skip to content

Commit 800a79a

Browse files
committed
fix: Fix bump-version-done
1 parent 14dd2c6 commit 800a79a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

{{cookiecutter.name}}/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ bump-version:
8282
@read version && $(PY) -m cruft update --variables-to-update "{ \"version\" : \"$$version\" }"
8383

8484
bump-version-done:
85-
VERSION=$(shell jq -r '.version' .cruft.json | head -c8)
86-
$(GIT) commit -m "chore: Bump version to $(VERSION)"
87-
$(GIT) tag $(VERSION)
85+
VERSION=$(shell jq -r '.context.cookiecutter.version' .cruft.json); \
86+
$(GIT) commit -m "chore: Bump version to $$VERSION"; \
87+
$(GIT) tag $$VERSION
88+
8889

8990
################################################################################
9091
# CUSTOM TARGETS

0 commit comments

Comments
 (0)