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:01:15 UTC

[pulsar-site] branch docs-sync updated: update

This is an automated email from the ASF dual-hosted git repository.

urfree pushed a commit to branch docs-sync
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


The following commit(s) were added to refs/heads/docs-sync by this push:
     new c99aa11  update
c99aa11 is described below

commit c99aa11d84161a4119ee1efd021dcd7499974b1e
Author: LiLi <ur...@apache.org>
AuthorDate: Tue Feb 15 16:01:01 2022 +0800

    update
    
    Signed-off-by: LiLi <ur...@apache.org>
---
 .github/workflows/ci-pulsar-website-docs-sync.yaml | 22 +++++++++++-----------
 site2/tools/sync-docs.sh                           |  2 --
 2 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/.github/workflows/ci-pulsar-website-docs-sync.yaml b/.github/workflows/ci-pulsar-website-docs-sync.yaml
index 637d2ef..8d493e4 100644
--- a/.github/workflows/ci-pulsar-website-docs-sync.yaml
+++ b/.github/workflows/ci-pulsar-website-docs-sync.yaml
@@ -34,22 +34,22 @@ jobs:
     runs-on: ubuntu-latest
     timeout-minutes: 180
     steps:
-      - name: checkout
-        uses: actions/checkout@v2
-        with:
-          ref: main
-
-      - name: Clone Pulsar
+      # - name: checkout
+      #   uses: actions/checkout@v2
+      #   with:
+      #     ref: main
+      - name: Docs sync from repo apache/pulsar 
         env:
           GH_TOKEN: ${{ secrets.PULSARBOT_TOKEN }}
           CROWDIN_DOCUSAURUS_API_KEY: ${{ secrets.PULSAR_CROWDIN_DOCUSAURUS_API_KEY }}
         run: |
-          cd ../
-          git clone https://github.com/apache/pulsar.git
-          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 clone "https://$GH_TOKEN@github.com/apache/pulsar-site.git" .
           git status
+          # git clone https://github.com/apache/pulsar.git
+          # 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
           # rm -rf pulsar/.git
           # rm -rf pulsar/site2
           # mv pulsar/* pulsar-site/
diff --git a/site2/tools/sync-docs.sh b/site2/tools/sync-docs.sh
deleted file mode 100755
index b154721..0000000
--- a/site2/tools/sync-docs.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-cp -r ../pulsar/site2/website/versioned_docs/* ./site2/website/versioned_docs
-cp -r ../pulsar/site2/website/versioned_sidebars/* ./site2/website/versioned_sidebars
\ No newline at end of file