This commit is contained in:
parent
5132063140
commit
3dd41870c6
|
|
@ -18,6 +18,16 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
# ✅ 新增:配置 Git 以解决 HTTP/2 问题
|
||||||
|
- name: Configure Git for stable cloning
|
||||||
|
run: |
|
||||||
|
git config --global http.version HTTP/1.1
|
||||||
|
git config --global http.postBuffer 524288000
|
||||||
|
git config --global http.lowSpeedLimit 0
|
||||||
|
git config --global http.lowSpeedTime 999999
|
||||||
|
git config --global core.compression 0
|
||||||
|
echo "✅ Git 配置已优化"
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: https://gitea.com/actions/checkout@v4
|
uses: https://gitea.com/actions/checkout@v4
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user