diff --git a/.gitea/workflows/AutoGenerateREADME.yaml b/.gitea/workflows/AutoGenerateREADME.yaml index 338dd09..c18376f 100644 --- a/.gitea/workflows/AutoGenerateREADME.yaml +++ b/.gitea/workflows/AutoGenerateREADME.yaml @@ -4,11 +4,12 @@ on: push: branches: - main - + # 添加条件判断 + if: "!contains(github.event.head_commit.message, 'AutoGenerateREADME.md')" jobs: create-readme: runs-on: ubuntu-latest - + steps: - name: 检出仓库 env: @@ -47,6 +48,6 @@ jobs: if git diff --staged --quiet; then echo "No changes to commit." else - git commit -m "Create README with commit history" + git commit -m "AutoGenerateREADME.md" git push "https://${GITEA_TOKEN}@${CLEAN_REPO_URL}" fi \ No newline at end of file