From 2dfe124b863c127cf438e1938ca8e75dd1a5cfb0 Mon Sep 17 00:00:00 2001 From: Blizzard Date: Fri, 17 Jul 2026 15:35:48 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20checkout=20=E6=94=B9=E7=94=A8=E5=86=85?= =?UTF-8?q?=E7=BD=91=20gitea=20git=20clone=EF=BC=8C=E5=8E=BB=E9=99=A4=20gi?= =?UTF-8?q?thub=20=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - actions/checkout@v4 从 github.com 拉取,内网 TLS 握手超时 - 改为直接 git clone 内网 gitea(192.168.100.125:3000),用 github.token 认证 - 至此 workflow 无任何 github action 依赖,全程走内网 Co-Authored-By: Claude Opus 4.8 --- .gitea/workflows/deploy.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index bea7efc..6536e8a 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -14,7 +14,10 @@ jobs: runs-on: ubuntu-latest steps: - name: 检出代码 - uses: actions/checkout@v4 + run: | + git config --global --add safe.directory '*' + git clone "http://token:${{ github.token }}@192.168.100.125:3000/${{ github.repository }}.git" . + git checkout "${{ github.sha }}" - name: 安装 ssh 工具 run: |