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:24:06 UTC

[pulsar-site] branch main updated: build multi-language docs only once everyday

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 710ad6ed9a3 build multi-language docs only once everyday
710ad6ed9a3 is described below

commit 710ad6ed9a33c2212491f53be6b96f04023b70f6
Author: Li Li <ur...@apache.org>
AuthorDate: Wed Jun 8 16:23:56 2022 +0800

    build multi-language docs only once everyday
    
    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