Fixed VERSION again

This commit is contained in:
2025-11-21 11:40:46 +08:00
parent a30217407c
commit 53d71b84a8

View File

@@ -26,12 +26,6 @@ jobs:
set -euo pipefail set -euo pipefail
helm plugin install https://github.com/chartmuseum/helm-push helm plugin install https://github.com/chartmuseum/helm-push
- name: Verify Chart.yaml version matches tag
run: |
set -euo pipefail
FILE="Chart.yaml"
YAML_VERSION="$(grep '^version:' "$FILE" | awk '{print $2}')"
- name: Lint and package chart - name: Lint and package chart
run: | run: |
set -euo pipefail set -euo pipefail
@@ -52,6 +46,7 @@ jobs:
--password "$HELM_PASSWORD" --password "$HELM_PASSWORD"
NAME="$(grep '^name:' Chart.yaml | awk '{print $2}')" NAME="$(grep '^name:' Chart.yaml | awk '{print $2}')"
YAML_VERSION="$(grep '^version:' "$FILE" | awk '{print $2}')"
CHART_TGZ="/tmp/${NAME}-${YAML_VERSION}.tgz" CHART_TGZ="/tmp/${NAME}-${YAML_VERSION}.tgz"
if [ ! -f "$CHART_TGZ" ]; then if [ ! -f "$CHART_TGZ" ]; then
echo "Expected packaged chart not found: $CHART_TGZ" echo "Expected packaged chart not found: $CHART_TGZ"