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/03/25 04:10:05 UTC

[pulsar-site] branch main updated: fix: add some log for crowdin actions

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 f78f7db  fix: add some log for crowdin actions
f78f7db is described below

commit f78f7db05d6c5b2a1bf4cdf1e113446cb3fb3954
Author: LiLi <ur...@apache.org>
AuthorDate: Fri Mar 25 12:09:53 2022 +0800

    fix: add some log for crowdin actions
    
    Signed-off-by: LiLi <ur...@apache.org>
---
 site2/tools/build-site.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/site2/tools/build-site.sh b/site2/tools/build-site.sh
index efeadfe..45c5b1c 100755
--- a/site2/tools/build-site.sh
+++ b/site2/tools/build-site.sh
@@ -102,10 +102,13 @@ yarn
 if [ -n "$NEXT" ]; then
   yarn write-translations
   CURRENT_HOUR=$(date +%H)
+  echo "------ crowdin envs:" $CROWDIN_UPLOAD $CROWDIN_DOWNLOAD $CURRENT_HOUR
   if [[ "$CROWDIN_UPLOAD" == "1" || $CURRENT_HOUR -lt 6 ]]; then
+    echo "------ crowdin upload"
     yarn run crowdin-upload
   fi
   if [[ "$CROWDIN_DOWNLOAD" == "1" || $CURRENT_HOUR -gt 12 ]]; then
+    echo "------ crowdin download"
     yarn crowdin-download
     echo 'all' > scripts/.language
   else