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

xushiyan pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new dd27bb0  [MINOR] asf-site CI: Fix GitHub Actions checkout config 
(#4395)
dd27bb0 is described below

commit dd27bb07c34d8ec905aac001ec7499c2ac4ed4eb
Author: Raymond Xu <[email protected]>
AuthorDate: Sun Dec 19 20:31:12 2021 -0800

    [MINOR] asf-site CI: Fix GitHub Actions checkout config (#4395)
---
 .github/workflows/asf-site.ci.yml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/asf-site.ci.yml 
b/.github/workflows/asf-site.ci.yml
index 156cfbb..9bcbcbb 100644
--- a/.github/workflows/asf-site.ci.yml
+++ b/.github/workflows/asf-site.ci.yml
@@ -14,12 +14,13 @@ jobs:
       DOCS_ROOT: "./website"
     steps:
       - uses: actions/checkout@v2
+        with:
+          token: ${{ secrets.GITHUB_TOKEN }}
+          fetch-depth: 0
       - name: Prepare branch
         run: |
-          git config --global user.name "CI BOT"
-          git config --global user.email "[email protected]"
-          git remote add hudi https://${{ secrets.GITHUB_TOKEN 
}}@github.com/apache/hudi.git
           git checkout -b pr
+          git remote add hudi https://${{ secrets.GITHUB_TOKEN 
}}@github.com/apache/hudi.git
           git pull --rebase hudi asf-site
       - uses: actions/setup-node@v2
         with:
@@ -37,5 +38,5 @@ jobs:
           rm -rf content
           cp -R ${{ env.DOCS_ROOT }}/build content
           git add -A
-          git commit -am "GitHub Actions build asf-site"
+          git -c "user.name=CI BOT" -c "[email protected]" 
commit -am "GitHub Actions build asf-site"
           git push hudi pr:asf-site

Reply via email to