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 326c3ad8930fb1387cbc04b5a21624e552d734d0
Author: LiLi <[email protected]>
AuthorDate: Tue Feb 15 16:25:53 2022 +0800

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

diff --git a/.github/workflows/ci-pulsar-website-docs-sync.yaml 
b/.github/workflows/ci-pulsar-website-docs-sync.yaml
index 119f3a5..e68e7e0 100644
--- a/.github/workflows/ci-pulsar-website-docs-sync.yaml
+++ b/.github/workflows/ci-pulsar-website-docs-sync.yaml
@@ -30,7 +30,7 @@ env:
 jobs:
   build-website:
     if: ${{ github.repository == 'apache/pulsar-site' }}
-    name: Build and publish pulsar website-next
+    name: Docs sync from repo apache/pulsar 
     runs-on: ubuntu-latest
     timeout-minutes: 180
     steps:
@@ -45,13 +45,24 @@ jobs:
         run: |
           git clone -b main 
"https://[email protected]/apache/pulsar-site.git"; pulsar-site
           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
-          git status
-          REVISION=$(git rev-parse --short HEAD)
+
+          cd pulsar 
+          PULSAR_COMMIT_ID=$(git rev-parse --short HEAD)
+
+          cd ../pulsar-site
+
           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."
+
+          git config user.name "Pulsar Site Updater"
+          git config user.email "[email protected]"
+
+          git remote -v
+
+          echo "Docs sync done from apache/pulsar(#$PULSAR_COMMIT_ID)"
+          # git diff-index --quiet HEAD || (git commit -m "Docs sync done from 
apache/pulsar(#$PULSAR_COMMIT_ID)" && git push -q origin main)
+
+          # echo "Docs Sync Done."

Reply via email to