fix: 添加 git safe.directory 配置解决权限问题
Some checks failed
Deploy BillAI / Deploy to Production (push) Failing after 1s
Some checks failed
Deploy BillAI / Deploy to Production (push) Failing after 1s
This commit is contained in:
@@ -17,6 +17,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "=== 拉取最新代码 ==="
|
echo "=== 拉取最新代码 ==="
|
||||||
echo "部署路径: ${{ vars.DEPLOY_PATH }}"
|
echo "部署路径: ${{ vars.DEPLOY_PATH }}"
|
||||||
|
git config --global --add safe.directory ${{ vars.DEPLOY_PATH }}
|
||||||
cd ${{ vars.DEPLOY_PATH }}
|
cd ${{ vars.DEPLOY_PATH }}
|
||||||
git fetch origin master
|
git fetch origin master
|
||||||
git reset --hard origin/master
|
git reset --hard origin/master
|
||||||
|
|||||||
Reference in New Issue
Block a user