fix: 添加 git safe.directory 配置,修复 CI/CD 中 dubious ownership 错误

This commit is contained in:
hhs
2026-06-20 17:21:40 +08:00
parent 3572b867c0
commit 39073b7673

View File

@@ -10,6 +10,7 @@ jobs:
steps:
- name: Deploy
run: |
git config --global --add safe.directory /root/camtalk
if [ -d /root/camtalk/.git ]; then
cd /root/camtalk
git fetch origin ${GITHUB_REF_NAME} --depth=1