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/06/08 08:22:56 UTC

[pulsar-site] branch fix/build-script updated: build multi language docs only once every day

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

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


The following commit(s) were added to refs/heads/fix/build-script by this push:
     new a087d3fd077 build multi language docs only once every day
a087d3fd077 is described below

commit a087d3fd0778c2f9e7d86e8ee077a4d80fb4b530
Author: Li Li <ur...@apache.org>
AuthorDate: Wed Jun 8 16:22:15 2022 +0800

    build multi language docs only once every day
    
    Signed-off-by: Li Li <ur...@apache.org>
---
 site2/tools/build-site.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/site2/tools/build-site.sh b/site2/tools/build-site.sh
index f2f67b2d8b5..0eef0620542 100755
--- a/site2/tools/build-site.sh
+++ b/site2/tools/build-site.sh
@@ -76,13 +76,13 @@ if [ -n "$NEXT" ]; then
   CURRENT_HOUR=$(date +%H)
   CURRENT_HOUR=${CURRENT_HOUR#0}
   echo "------ crowdin envs:" "CROWDIN_UPLOAD: "$CROWDIN_UPLOAD "CROWDIN_DOWNLOAD: "$CROWDIN_DOWNLOAD "CURRENT_HOUR: "$CURRENT_HOUR
-  if [[ "$CROWDIN_UPLOAD" == "1" || $CURRENT_HOUR -lt 6 ]]; then
+  if [[ "$CROWDIN_UPLOAD" == "1" || $CURRENT_HOUR -eq 6 ]]; then
     echo "------ exec crowdin upload"
     yarn run crowdin-upload
   else
     echo "------ skip crowdin upload"
   fi
-  if [[ "$CROWDIN_DOWNLOAD" == "1" || $CURRENT_HOUR -gt 12 ]]; then
+  if [[ "$CROWDIN_DOWNLOAD" == "1" || $CURRENT_HOUR -eq 12 ]]; then
     echo "------ exec crowdin download"
     yarn crowdin-download
     echo 'all' >scripts/.language