diff --git a/.github/workflows/check_charts.yml b/.github/workflows/check_charts.yml index a4c2bec..ccdc03a 100644 --- a/.github/workflows/check_charts.yml +++ b/.github/workflows/check_charts.yml @@ -22,6 +22,15 @@ jobs: with: fetch-depth: 0 + - name: Check Version + run: | + current_version=$(grep '^version=' pyproject.toml | cut -f1 -d= | tr -d ' ' | tr -d '"') + app_version=$(grep 'appVersion:' deployment/k7s/charts/Chart.yaml | cut -f2 -d: | tr -d ' ') + if [[ "$current_version" != "$app_version" ]]; then + echo "❌ current version from pyproject.toml ($current_version) and appVersion from Chart.yaml ($app_version) differs"; + exit 0; + fi + - name: Set up Helm uses: azure/setup-helm@v4 with: