From 4b36f8dcdf860e606b0f7f26d271bbb75c5cb836 Mon Sep 17 00:00:00 2001 From: liyp Date: Thu, 10 Apr 2025 14:16:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8Egitea=E6=8B=89=E5=8F=96checkout?= =?UTF-8?q?=E4=BB=93=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/AutoGenerateREADME.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/AutoGenerateREADME.yaml b/.gitea/workflows/AutoGenerateREADME.yaml index 66a90e9..e71e92c 100644 --- a/.gitea/workflows/AutoGenerateREADME.yaml +++ b/.gitea/workflows/AutoGenerateREADME.yaml @@ -11,9 +11,8 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 - with: - fetch-depth: 0 # 获取完整的提交历史 + run: | + git clone --depth=0 https://gitea.com/actions/checkout.git . - name: Get repository name id: repo-name @@ -38,8 +37,8 @@ jobs: - name: Commit and push changes run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" + git config --local user.email "liyepan@linuxacme.com" + git config --local user.name "iorebuild" git add README.md if git diff --staged --quiet; then echo "No changes to README.md. Skipping commit."