This commit is contained in:
parent
e33aa695c1
commit
0b6b12dcd0
@ -12,6 +12,14 @@ jobs:
|
||||
if: "!contains(github.event.head_commit.message, 'AutoGenerateREADME.md')"
|
||||
|
||||
steps:
|
||||
- name: 删除本地仓库副本
|
||||
env:
|
||||
REPO_NAME: ${{ github.event.repository.name }}
|
||||
run: |
|
||||
if [ -d "$REPO_NAME" ]; then
|
||||
rm -rf "$REPO_NAME"
|
||||
fi
|
||||
|
||||
- name: 检出仓库
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.AUTOGENERATE }}
|
||||
@ -55,6 +63,5 @@ jobs:
|
||||
echo "No changes to commit."
|
||||
else
|
||||
git commit -m "AutoGenerateREADME.md"
|
||||
git pull --rebase --force-with-lease "https://${GITEA_TOKEN}@${CLEAN_REPO_URL}" main
|
||||
git push "https://${GITEA_TOKEN}@${CLEAN_REPO_URL}"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user