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

commit dd40edb36a342fe38ee676ccf1fa2ebcf5816561
Author: LiLi <[email protected]>
AuthorDate: Tue Feb 15 16:15:46 2022 +0800

    update
    
    Signed-off-by: LiLi <[email protected]>
---
 .github/workflows/ci-pulsar-website-docs-sync.yaml | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/ci-pulsar-website-docs-sync.yaml 
b/.github/workflows/ci-pulsar-website-docs-sync.yaml
index aefcc02..119f3a5 100644
--- a/.github/workflows/ci-pulsar-website-docs-sync.yaml
+++ b/.github/workflows/ci-pulsar-website-docs-sync.yaml
@@ -44,14 +44,14 @@ jobs:
           CROWDIN_DOCUSAURUS_API_KEY: ${{ 
secrets.PULSAR_CROWDIN_DOCUSAURUS_API_KEY }}
         run: |
           git clone -b main 
"https://[email protected]/apache/pulsar-site.git"; pulsar-site
-          ls -l
-          # git clone https://github.com/apache/pulsar.git pulsar
-          # ls -l
-          # cp -r pulsar/site2/website/versioned_docs/* 
pulsar-site/site2/website/versioned_docs
-          # cp -r pulsar/site2/website/versioned_sidebars/* 
pulsar-site/site2/website/versioned_sidebars
+          git clone https://github.com/apache/pulsar.git pulsar
+          cp -r pulsar/site2/website/versioned_docs/* 
pulsar-site/site2/website/versioned_docs
+          cp -r pulsar/site2/website/versioned_sidebars/* 
pulsar-site/site2/website/versioned_sidebars
           cd pulsar-site
-          ls -l
           git status
-          # rm -rf pulsar/.git
-          # rm -rf pulsar/site2
-          # mv pulsar/* pulsar-site/
+          REVISION=$(git rev-parse --short HEAD)
+          git add -A .
+          git status
+          git diff-index --quiet HEAD
+          # || (git commit -m "Updated site at revision $REVISION" && git push 
-q origin main)
+          echo "Docs Sync Done."

Reply via email to