From fe2d89fde80ed52d09e6ee67bcc138d28ce13a7c Mon Sep 17 00:00:00 2001 From: yuanzhen869 Date: Sat, 26 Apr 2025 08:20:28 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/sync=5Fra?= =?UTF-8?q?w=5Ffile.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/sync_raw_file.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/sync_raw_file.yml b/.gitea/workflows/sync_raw_file.yml index 83e638c..7fcdd1f 100644 --- a/.gitea/workflows/sync_raw_file.yml +++ b/.gitea/workflows/sync_raw_file.yml @@ -46,13 +46,12 @@ jobs: # 循环遍历每个目录,下载对应平台下的文件 for directory in "${directories[@]}"; do - # 构建文件 URL - url="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/${platform_type}/${directory}/${directory}.${filetype}" - - # 特殊处理Clash平台的文件名 + # 特殊处理 Clash 平台的文件名和 URL if [ "$platform_type" = "Clash" ]; then + url="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/${platform_type}/${directory}/${directory}_Classical.${filetype}" output_file="${directory}_Classical.${filetype}" else + url="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/${platform_type}/${directory}/${directory}.${filetype}" output_file="${directory}.${filetype}" fi