- 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:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user