1028
Some checks failed
Clone Repository with Trojan-Go Proxy / clone_with_proxy (push) Failing after 37s

This commit is contained in:
298977887 2024-10-28 01:01:29 +08:00
parent 18fa9b758d
commit 1a2110638c

View File

@ -35,13 +35,17 @@ jobs:
TROJAN_GO_CONFIG: ${{ secrets.TROJAN_GO_CONFIG }}
# 3. 启动 Trojan-Go 并检测代理是否可用
- name: 🔍 测试代理的连通性
run: |
nohup trojan-go -config trojan-go-config.json &
sleep 10 # 等待代理启动
#- name: 🔍 测试代理的连通性
# run: |
# nohup trojan-go -config trojan-go-config.json &
# sleep 10 # 等待代理启动
# sudo apt-get update && sudo apt-get install -y lsof
# # 检查代理是否在监听
# lsof -i :1080 || echo "Trojan-Go did not start on port 1080"
- name: 🔍 启动并保持 Trojan-Go 运行
run: |
nohup trojan-go -config trojan-go-config.json & disown
sleep 10 # 等待代理启动
# 4. 使用代理克隆仓库
- name: 🚀 使用代理克隆仓库