From 89c1835ac0229a72ba763118da8376144bce8c41 Mon Sep 17 00:00:00 2001 From: 3944Realms Date: Fri, 1 May 2026 23:26:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=BC=8F=E7=89=88=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E6=8F=90=E4=BA=A4(=E4=BF=AE=E5=A4=8DAction=E6=B5=81?= =?UTF-8?q?=E9=97=AE=E9=A2=984)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/delopy.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/delopy.yml b/.gitea/workflows/delopy.yml index 54f662a..8b5ce46 100644 --- a/.gitea/workflows/delopy.yml +++ b/.gitea/workflows/delopy.yml @@ -18,8 +18,30 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: https://gitee.com/actions-mirror/checkout@v4 + - name: Manual checkout (方案四) + run: | + git config --global http.version HTTP/1.1 + git config --global http.postBuffer 524288000 + git config --global core.compression 0 + + # 如果配置了 SSH 密钥 + if [ -n "${{ secrets.SSH_PRIVATE_KEY }}" ]; then + mkdir -p ~/.ssh + echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan -p 22 gitea.bot.leisuretimedock.top >> ~/.ssh/known_hosts 2>/dev/null + fi + + git clone --depth 1 \ + https://gitea.bot.leisuretimedock.top/R3944Realms/LTDV10.git \ + temp_repo + + shopt -s dotglob + mv temp_repo/* . 2>/dev/null || true + mv temp_repo/.[!.]* . 2>/dev/null || true + rm -rf temp_repo + + ls -la - name: Set executable permissions run: |