From fc07b4560732e85a46d1bc17d354fad456f6213a Mon Sep 17 00:00:00 2001 From: liujian <54946465+redscholar@users.noreply.github.com> Date: Sat, 14 Sep 2024 15:41:03 +0800 Subject: [PATCH] sync helm chart to main when build a helm-chart release (#6177) Signed-off-by: liujian <54946465+redscholar@users.noreply.github.com> Signed-off-by: joyceliu --- .github/workflows/sync-helm-chart.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-helm-chart.yaml b/.github/workflows/sync-helm-chart.yaml index 8fe00cf73..557be6a0f 100644 --- a/.github/workflows/sync-helm-chart.yaml +++ b/.github/workflows/sync-helm-chart.yaml @@ -7,7 +7,7 @@ on: - 'master' - 'release-*' tags: - - 'v*' + - 'helm-chart-*' jobs: sync-chart: @@ -44,7 +44,7 @@ jobs: git checkout -b sync/ks-core/${GITHUB_REF#refs/*/} ks/master rm -rf src/test/ks-core cp -r ../kubesphere/config/ks-core src/test/ - if [[ ${GITHUB_REF#refs/*/} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + if [[ ${GITHUB_REF#refs/*/} =~ ^helm-chart-[0-9]+\.[0-9]+\.[0-9]+$ ]]; then rm -rf src/main/ks-core cp -r ../kubesphere/config/ks-core src/main/ fi