No description
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
Sync Clash rules to latest release / sync (push) Successful in 8s
|
||
| .forgejo/workflows | ||
| README.md | ||
clash-rules
通过 Forgejo Actions 每 12 小时同步 13 个 Clash 规则文件,并覆盖发布到固定的
latest Release。其中 reject.txt 使用
privacy-protection-tools/anti-AD
的 anti-ad-clash.yaml,其余规则来自
Loyalsoldier/clash-rules。
规则地址
所有链接都固定指向 latest Release:
rule-providers:
reject:
type: http
behavior: domain
url: "https://git.pixhelf.com/adminroot/clash-rules/releases/download/latest/reject.txt"
path: ./ruleset/reject.yaml
interval: 86400
icloud:
type: http
behavior: domain
url: "https://git.pixhelf.com/adminroot/clash-rules/releases/download/latest/icloud.txt"
path: ./ruleset/icloud.yaml
interval: 86400
apple:
type: http
behavior: domain
url: "https://git.pixhelf.com/adminroot/clash-rules/releases/download/latest/apple.txt"
path: ./ruleset/apple.yaml
interval: 86400
google:
type: http
behavior: domain
url: "https://git.pixhelf.com/adminroot/clash-rules/releases/download/latest/google.txt"
path: ./ruleset/google.yaml
interval: 86400
proxy:
type: http
behavior: domain
url: "https://git.pixhelf.com/adminroot/clash-rules/releases/download/latest/proxy.txt"
path: ./ruleset/proxy.yaml
interval: 86400
direct:
type: http
behavior: domain
url: "https://git.pixhelf.com/adminroot/clash-rules/releases/download/latest/direct.txt"
path: ./ruleset/direct.yaml
interval: 86400
private:
type: http
behavior: domain
url: "https://git.pixhelf.com/adminroot/clash-rules/releases/download/latest/private.txt"
path: ./ruleset/private.yaml
interval: 86400
gfw:
type: http
behavior: domain
url: "https://git.pixhelf.com/adminroot/clash-rules/releases/download/latest/gfw.txt"
path: ./ruleset/gfw.yaml
interval: 86400
tld-not-cn:
type: http
behavior: domain
url: "https://git.pixhelf.com/adminroot/clash-rules/releases/download/latest/tld-not-cn.txt"
path: ./ruleset/tld-not-cn.yaml
interval: 86400
telegramcidr:
type: http
behavior: ipcidr
url: "https://git.pixhelf.com/adminroot/clash-rules/releases/download/latest/telegramcidr.txt"
path: ./ruleset/telegramcidr.yaml
interval: 86400
cncidr:
type: http
behavior: ipcidr
url: "https://git.pixhelf.com/adminroot/clash-rules/releases/download/latest/cncidr.txt"
path: ./ruleset/cncidr.yaml
interval: 86400
lancidr:
type: http
behavior: ipcidr
url: "https://git.pixhelf.com/adminroot/clash-rules/releases/download/latest/lancidr.txt"
path: ./ruleset/lancidr.yaml
interval: 86400
applications:
type: http
behavior: classical
url: "https://git.pixhelf.com/adminroot/clash-rules/releases/download/latest/applications.txt"
path: ./ruleset/applications.yaml
interval: 86400
单个文件也可以直接通过以下格式下载:
https://git.pixhelf.com/adminroot/clash-rules/releases/download/latest/<规则名>.txt
自动同步
- 工作流会在每次推送到
main、每天北京时间06:00和18:00(UTC22:00和10:00),以及手动触发时运行。 reject.txt的附件名与下载地址保持不变,但内容同步自 anti-AD 的anti-ad-clash.yaml。- 发布前会检查每个下载文件非空且包含 Clash 的
payload:根字段;任一文件失败时不会覆盖 Release。 - 13 个上游文件与当前
latest附件全部一致时会跳过发布;任一文件变化或缺失时才覆盖 Release。 - Release 标签与附件名保持不变,因此下载地址不会变化。
- 使用 Forgejo 自动提供的临时仓库令牌,无需配置额外的 Secret。