Removed tag check logic

This commit is contained in:
2025-11-21 11:18:20 +08:00
parent 904f900aa2
commit 4a5cb25d08

View File

@@ -26,22 +26,11 @@ jobs:
set -euo pipefail
helm plugin install https://github.com/chartmuseum/helm-push
- name: Determine version from git tag
run: |
set -euo pipefail
TAG="$(git describe --tags --exact-match)"
VERSION="${TAG#v}"
echo "VERSION=${VERSION}" >> "$GITHUB_ENV"
- name: Verify Chart.yaml version matches tag
run: |
set -euo pipefail
FILE="Chart.yaml"
YAML_VER="$(grep '^version:' "$FILE" | awk '{print $2}')"
if [ "$YAML_VER" != "$VERSION" ]; then
echo "Chart.yaml version ($YAML_VER) != tag version ($VERSION)"
exit 1
fi
- name: Lint and package chart
run: |
@@ -63,7 +52,7 @@ jobs:
--password "$HELM_PASSWORD"
NAME="$(grep '^name:' Chart.yaml | awk '{print $2}')"
CHART_TGZ="/tmp/${NAME}-${VERSION}.tgz"
CHART_TGZ="/tmp/${NAME}-${YAML_VERSION}.tgz"
if [ ! -f "$CHART_TGZ" ]; then
echo "Expected packaged chart not found: $CHART_TGZ"
ls -l /tmp