从gitea拉取checkout仓库
Some checks failed
Generate README based on repo name and commits / generate-readme (push) Failing after 11s

This commit is contained in:
liyp 2025-04-10 14:16:17 +08:00
parent b583d901ee
commit 4b36f8dcdf

View File

@ -11,9 +11,8 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 run: |
with: git clone --depth=0 https://gitea.com/actions/checkout.git .
fetch-depth: 0 # 获取完整的提交历史
- name: Get repository name - name: Get repository name
id: repo-name id: repo-name
@ -38,8 +37,8 @@ jobs:
- name: Commit and push changes - name: Commit and push changes
run: | run: |
git config --local user.email "action@github.com" git config --local user.email "liyepan@linuxacme.com"
git config --local user.name "GitHub Action" git config --local user.name "iorebuild"
git add README.md git add README.md
if git diff --staged --quiet; then if git diff --staged --quiet; then
echo "No changes to README.md. Skipping commit." echo "No changes to README.md. Skipping commit."