Archived
v7 #7
@@ -21,8 +21,8 @@ jobs:
|
|||||||
ssh -i ~/.ssh/deploy_key ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} <<-'EOF'
|
ssh -i ~/.ssh/deploy_key ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} <<-'EOF'
|
||||||
set -e
|
set -e
|
||||||
cd $DEPLOY_PATH
|
cd $DEPLOY_PATH
|
||||||
# 移除--add,兼容老git版本
|
# 使用--local,仅当前仓库生效,不修改全局git配置,避开safe.directory多值冲突
|
||||||
git config --global safe.directory "$DEPLOY_PATH"
|
git config --local safe.directory "*"
|
||||||
git fetch origin main
|
git fetch origin main
|
||||||
|
|
||||||
# 备份运行时db
|
# 备份运行时db
|
||||||
|
|||||||
Reference in New Issue
Block a user