From 4a5cb25d08cca305ef21e6f58b5b8e9dc743c215 Mon Sep 17 00:00:00 2001 From: Conan Scott Date: Fri, 21 Nov 2025 11:18:20 +0800 Subject: [PATCH] Removed tag check logic --- .gitea/workflows/publish-helm.yaml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.gitea/workflows/publish-helm.yaml b/.gitea/workflows/publish-helm.yaml index 9c2d07f..9e7ee4d 100644 --- a/.gitea/workflows/publish-helm.yaml +++ b/.gitea/workflows/publish-helm.yaml @@ -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