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 <joyceliu@yunify.com>
This commit is contained in:
liujian
2024-09-14 15:41:03 +08:00
committed by GitHub
parent bbc476d47c
commit fc07b45607

View File

@@ -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