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 4ba1558 update
4ba1558 is described below
commit 4ba15586c01dcae5c60ac7f24a828b93c07a1ab2
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."