helm chart check version

This commit is contained in:
moilanik
2026-06-19 05:39:27 +03:00
parent 6113f9744c
commit 15e8cdc562
+3 -1
View File
@@ -42,8 +42,10 @@ jobs:
RAW_VERSION=$(jq -r '.version' package.json)
elif [ -f pom.xml ]; then
RAW_VERSION=$(grep -oP '<version>\K[^<]+' pom.xml | head -1)
elif [ -f Chart.yaml ]; then
RAW_VERSION=$(grep -oP '^version:\s*\K\S+' Chart.yaml)
else
echo "ERROR: No VERSION file, package.json, or pom.xml found" >&2
echo "ERROR: No VERSION file, package.json, pom.xml, or Chart.yaml found" >&2
exit 1
fi
BASE_VERSION=$(echo "$RAW_VERSION" | cut -d'.' -f1-2)