You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ur...@apache.org on 2022/04/01 06:23:16 UTC

[pulsar-site] branch main updated: feat: add env param to control whether force build all versions

This is an automated email from the ASF dual-hosted git repository.

urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 6cca1c6  feat: add env param to control whether force build all versions
6cca1c6 is described below

commit 6cca1c6ce4cc12810da2b207e8fef32eb630fce9
Author: Li Li <ur...@apache.org>
AuthorDate: Fri Apr 1 14:23:04 2022 +0800

    feat: add env param to control whether force build all versions
    
    Signed-off-by: Li Li <ur...@apache.org>
---
 site2/website-next/scripts/split-version-build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/site2/website-next/scripts/split-version-build.sh b/site2/website-next/scripts/split-version-build.sh
index 93992c5..2ea4071 100755
--- a/site2/website-next/scripts/split-version-build.sh
+++ b/site2/website-next/scripts/split-version-build.sh
@@ -51,7 +51,7 @@ function _buildVersion() {
 # Build next version that has any changed
 while read version; do
     buildVersion=$version
-    if [[ $@ == *website-next/versioned_docs/version-$version* || $buildVersion == "next" ]]; then
+    if [[ $@ == *website-next/versioned_docs/version-$version* || $buildVersion == "next" || $BUILD_ALL_VERSION == "1" ]]; then
         _buildVersion
     else
         echo "..." $buildVersion "no change, skip"