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/17 05:50:03 UTC
[pulsar-site] branch main updated: fix: optimize sync workflow
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
The following commit(s) were added to refs/heads/main by this push:
new a7b4175 fix: optimize sync workflow
a7b4175 is described below
commit a7b4175f0b17566e280b301145da6218196aeab1
Author: LiLi <ur...@apache.org>
AuthorDate: Thu Feb 17 13:49:49 2022 +0800
fix: optimize sync workflow
Signed-off-by: LiLi <ur...@apache.org>
---
.github/workflows/ci-pulsar-website-build.yaml | 6 +++---
.github/workflows/ci-pulsar-website-docs-sync.yaml | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/ci-pulsar-website-build.yaml b/.github/workflows/ci-pulsar-website-build.yaml
index a65d28e..b84a646 100644
--- a/.github/workflows/ci-pulsar-website-build.yaml
+++ b/.github/workflows/ci-pulsar-website-build.yaml
@@ -18,9 +18,9 @@
#
name: CI - Pulsar Website build
-on:
- push:
- branches: [main]
+# on:
+# push:
+# branches: [main]
env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
diff --git a/.github/workflows/ci-pulsar-website-docs-sync.yaml b/.github/workflows/ci-pulsar-website-docs-sync.yaml
index a232163..cbf8522 100644
--- a/.github/workflows/ci-pulsar-website-docs-sync.yaml
+++ b/.github/workflows/ci-pulsar-website-docs-sync.yaml
@@ -39,9 +39,9 @@ jobs:
GH_TOKEN: ${{ secrets.PULSARBOT_TOKEN }}
CROWDIN_DOCUSAURUS_API_KEY: ${{ secrets.PULSAR_CROWDIN_DOCUSAURUS_API_KEY }}
run: |
- git clone -b main "https://$GH_TOKEN@github.com/apache/pulsar-site.git" pulsar-site
+ git clone -b main --depth 1 "https://$GH_TOKEN@github.com/apache/pulsar-site.git" pulsar-site
echo "pulsar-site clone done."
- git clone https://github.com/apache/pulsar.git pulsar
+ git clone --depth 1 https://github.com/apache/pulsar.git pulsar
echo "pulsar clone done."
cp -r pulsar/site2/website/versioned_docs/* pulsar-site/site2/website/versioned_docs