1028
All checks were successful
Clone Repository with Trojan-Go Proxy / clone_with_proxy (push) Successful in 33s
All checks were successful
Clone Repository with Trojan-Go Proxy / clone_with_proxy (push) Successful in 33s
This commit is contained in:
parent
e29973e713
commit
a1b5d3fc8f
27
.github/workflows/BBB.yml
vendored
27
.github/workflows/BBB.yml
vendored
@ -34,14 +34,6 @@ jobs:
|
||||
env:
|
||||
TROJAN_GO_CONFIG: ${{ secrets.TROJAN_GO_CONFIG }}
|
||||
|
||||
# 3. 启动 Trojan-Go 并检测代理是否可用
|
||||
#- 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 > /tmp/trojan-go.log 2>&1 & disown
|
||||
@ -54,17 +46,6 @@ jobs:
|
||||
echo "启动失败,检查日志文件 /tmp/trojan-go.log 以获取更多信息。" && cat /tmp/trojan-go.log && exit 1
|
||||
fi
|
||||
|
||||
# 4. 使用代理克隆仓库
|
||||
#- name: 🚀 使用代理克隆仓库
|
||||
# env:
|
||||
# REPO_URL: https://github.com/coolsnowwolf/lede
|
||||
# REPO_BRANCH: master
|
||||
# ALL_PROXY: "socks5://127.0.0.1:1080"
|
||||
# http_proxy: "socks5://127.0.0.1:1080"
|
||||
# https_proxy: "socks5://127.0.0.1:1080"
|
||||
# run: |
|
||||
# echo "Checking ALL_PROXY: $ALL_PROXY"
|
||||
# git clone --depth 1 $REPO_URL -b $REPO_BRANCH
|
||||
- name: 🚀 使用代理克隆仓库
|
||||
env:
|
||||
REPO_URL: https://github.com/coolsnowwolf/lede
|
||||
@ -111,14 +92,12 @@ jobs:
|
||||
echo "Checking IP with proxy using ALL_PROXY:"
|
||||
curl -s https://httpbin.org/ip || echo "Request failed, even with proxy."
|
||||
|
||||
- name: 🌐 Step with Proxy (using wget with debug)
|
||||
- name: 🌐 Step with Proxy (using curl with debug)
|
||||
env:
|
||||
ALL_PROXY: "socks5://127.0.0.1:1080"
|
||||
http_proxy: "socks5://127.0.0.1:1080"
|
||||
https_proxy: "socks5://127.0.0.1:1080"
|
||||
run: |
|
||||
echo "Checking IP with proxy using wget:"
|
||||
wget -qO- --timeout=10 --tries=3 https://httpbin.org/ip || echo "Request failed, even with proxy."
|
||||
echo "Checking IP with proxy using curl:"
|
||||
curl -s --max-time 10 https://httpbin.org/ip || echo "Request failed, even with proxy."
|
||||
|
||||
# 最后一步:验证 Trojan-Go 代理是否还在运行
|
||||
- name: 🔍 验证代理是否在运行
|
||||
|
Loading…
Reference in New Issue
Block a user