common-helm-lib/Makefile
Jonas Forsberg 5b8b037905 .
2024-10-19 08:54:28 +02:00

12 lines
318 B
Makefile

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