common-helm-lib/Makefile
Jonas Forsberg 869a756e4b first commit
2024-10-15 16:19:57 +02:00

7 lines
260 B
Makefile

NEW_VERSION:=$(shell yq '.version |= (split(".") | .[-1] |= ((. tag = "!!int") + 1) | join("."))' Chart.yaml | yq '.version')
branch:
@echo "New chart version is: $(NEW_VERSION)"
git checkout -b lib_$(NEW_VERSION)
yq '.version="$(NEW_VERSION)"' Chart.yaml