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/02/15 08:47:43 UTC

[pulsar-site] 09/13: update

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 <ur...@apache.org>
AuthorDate: Tue Feb 15 16:25:53 2022 +0800

    update
    
    Signed-off-by: LiLi <ur...@apache.org>
---
 .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://$GH_TOKEN@github.com/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 "dev@pulsar.apache.org"
+
+          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."