From b94d3c0d0fb92c93b2fa82e9030098dd4a5c17c9 Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Wed, 8 Sep 2021 19:58:11 +0200 Subject: [PATCH] fix: make sure common can also build releases --- tools/build-release.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/build-release.sh b/tools/build-release.sh index e6789b2f256..23aa7cd389b 100755 --- a/tools/build-release.sh +++ b/tools/build-release.sh @@ -84,7 +84,7 @@ main() { copy_docs "$chart" "$chartname" "$train" "$chartversion" helm dependency update "${chart}" --skip-refresh package_chart "$chart" - if [[ -d "${chart}/SCALE" ]]; then + if [[ -f "${chart}/SCALE/item.yaml" ]]; then clean_apps "$chart" "$chartname" "$train" "$chartversion" copy_apps "$chart" "$chartname" "$train" "$chartversion" patch_apps "$chart" "$chartname" "$train" "$chartversion" @@ -199,12 +199,12 @@ generate_docs() { --ignore-file=".helmdocsignore" \ --output-file="README.md" \ --template-files="/__w/apps/apps/templates/docs/common-README.md.gotmpl" \ - --chart-search-root="/home/runner/work/apps/apps/charts/library/common" + --chart-search-root="${chart}" helm-docs \ --ignore-file=".helmdocsignore" \ --output-file="helm-values.md" \ --template-files="/__w/apps/apps/templates/docs/common-helm-values.md.gotmpl" \ - --chart-search-root="/home/runner/work/apps/apps/charts/library/common" + --chart-search-root="${chart}" else helm-docs \ --ignore-file=".helmdocsignore" \