ci: checkout 改用内网 gitea git clone,去除 github 依赖

- 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 <noreply@anthropic.com>
This commit is contained in:
Blizzard
2026-07-17 15:35:48 +08:00
parent 644f9e6957
commit 2dfe124b86
+4 -1
View File
@@ -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: |