从gitea拉取checkout仓库
Some checks failed
Generate README based on repo name and commits / generate-readme (push) Failing after 11s
Some checks failed
Generate README based on repo name and commits / generate-readme (push) Failing after 11s
This commit is contained in:
parent
b583d901ee
commit
4b36f8dcdf
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user