From 1942ba55ed9ca5e5844c4e9666bc39c3ee3dd895 Mon Sep 17 00:00:00 2001 From: LIRUI <298977887@qq.com> Date: Sun, 27 Oct 2024 20:21:18 +0800 Subject: [PATCH] 1027 --- .github/workflows/BBB.yml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/BBB.yml b/.github/workflows/BBB.yml index dcb9d80..52ca67f 100644 --- a/.github/workflows/BBB.yml +++ b/.github/workflows/BBB.yml @@ -34,21 +34,10 @@ jobs: # 2. 配置代理参数 - name: 🔧 配置 Trojan-Go 代理 run: | - cat < 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