Merge pull request 'fix: git clone 前清理残留的 /tmp/camtalk-deploy 目录' (#166) from fix/actions into develop

Reviewed-on: http://8.161.227.145:3000/XEngineers/CamTalk/pulls/166
This commit was merged in pull request #166.
This commit is contained in:
2026-06-20 21:39:02 +08:00

View File

@@ -17,6 +17,7 @@ jobs:
git fetch "$GIT_URL" ${GITHUB_REF_NAME} --depth=1 git fetch "$GIT_URL" ${GITHUB_REF_NAME} --depth=1
git reset --hard FETCH_HEAD git reset --hard FETCH_HEAD
else else
rm -rf /tmp/camtalk-deploy
git clone --depth=1 --branch ${GITHUB_REF_NAME} \ git clone --depth=1 --branch ${GITHUB_REF_NAME} \
http://8.161.227.145:3000/XEngineers/CamTalk.git /tmp/camtalk-deploy http://8.161.227.145:3000/XEngineers/CamTalk.git /tmp/camtalk-deploy
mkdir -p /root/camtalk mkdir -p /root/camtalk