From 8ad4c5fbdd4e67ddf14cb9c396c335f35291c391 Mon Sep 17 00:00:00 2001 From: adminroot Date: Fri, 12 Sep 2025 01:56:09 -0700 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/update-ru?= =?UTF-8?q?les.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/update-rules.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/update-rules.yml b/.gitea/workflows/update-rules.yml index 0612ff1..216180a 100644 --- a/.gitea/workflows/update-rules.yml +++ b/.gitea/workflows/update-rules.yml @@ -24,7 +24,8 @@ jobs: run: | curl -L "https://anti-ad.net/clash.yaml" \ -o "ruleset/yaml/reject.yaml" \ - --fail --silent --show-error + --fail --silent --show-error && \ + sed 's/^/ - /' "ruleset/yaml/reject.yaml" >> "ruleset/txt/reject.txt" # 定义规则文件列表 rules=( @@ -61,8 +62,8 @@ jobs: cat > README.md << EOF # Clash Rules - 自动同步 [Loyalsoldier/clash-rules](https://github.com/Loyalsoldier/clash-rules) 规则文件。
- 其中广告过滤规则替换为更好的[privacy-protection-tools/anti-AD](https://github.com/privacy-protection-tools/anti-AD?tab=readme-ov-file) : anti-ad-clash.yaml。 + 自动同步 [clash-rules](https://github.com/Loyalsoldier/clash-rules) 规则文件。
+ 其中广告过滤规则替换为更好的[anti-AD](https://github.com/privacy-protection-tools/anti-AD?tab=readme-ov-file) : anti-ad-clash.yaml。 ## 文件说明