From 2d4e6cf07ca8ac82ea1278c6774b9f974d9a4d2e Mon Sep 17 00:00:00 2001 From: liyp Date: Thu, 10 Apr 2025 15:37:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E9=87=8D=E5=A4=8Daction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/AutoGenerateREADME.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/AutoGenerateREADME.yaml b/.gitea/workflows/AutoGenerateREADME.yaml index 92e8bf2..4e45478 100644 --- a/.gitea/workflows/AutoGenerateREADME.yaml +++ b/.gitea/workflows/AutoGenerateREADME.yaml @@ -1,4 +1,4 @@ -name: Create README +name: Create README with Commit History on: push: @@ -8,6 +8,7 @@ on: jobs: create-readme: runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, 'Create README with commit history')" steps: - name: Checkout code from Gitea @@ -45,12 +46,12 @@ jobs: run: | # 去除多余的 https:// CLEAN_REPO_URL="${CLEAN_REPO_URL#https://}" - 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 commit." else - git commit -m "Create README with repository name" + git commit -m "Create README with commit history" git push "https://${GITEA_TOKEN}@${CLEAN_REPO_URL}" fi \ No newline at end of file