1027
All checks were successful
Clone Repository with Trojan-Go Proxy / clone_with_proxy (push) Successful in 30s
All checks were successful
Clone Repository with Trojan-Go Proxy / clone_with_proxy (push) Successful in 30s
This commit is contained in:
parent
d58151c5d7
commit
1942ba55ed
20
.github/workflows/BBB.yml
vendored
20
.github/workflows/BBB.yml
vendored
@ -34,21 +34,10 @@ jobs:
|
||||
# 2. 配置代理参数
|
||||
- name: 🔧 配置 Trojan-Go 代理
|
||||
run: |
|
||||
cat <<EOF > trojan-go-config.json
|
||||
{
|
||||
"run_type": "client",
|
||||
"local_addr": "127.0.0.1",
|
||||
"local_port": 1080,
|
||||
"remote_addr": "47.88.62.50",
|
||||
"remote_port": 443,
|
||||
"password": ["aiwoQwo5253"],
|
||||
"ssl": {
|
||||
"sni": "en.aoun.ltd",
|
||||
"alpn": ["http/1.1"],
|
||||
"verify": true
|
||||
}
|
||||
}
|
||||
EOF
|
||||
# 将多行 JSON 配置内容从 Secrets 中写入 trojan-go-config.json 文件
|
||||
echo "$TROJAN_GO_CONFIG" > trojan-go-config.json
|
||||
env:
|
||||
TROJAN_GO_CONFIG: ${{ secrets.TROJAN_GO_CONFIG }}
|
||||
|
||||
# 3. 启动 Trojan-Go 并检测代理是否可用
|
||||
- name: 🔍 测试代理的连通性
|
||||
@ -72,4 +61,5 @@ jobs:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user