From 6e7980bbcf2404fa2141b8af7d8f56bdd631874b Mon Sep 17 00:00:00 2001 From: adminroot Date: Fri, 12 Sep 2025 00:14:02 -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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/update-rules.yml b/.gitea/workflows/update-rules.yml index 8eafd7c..a15a300 100644 --- a/.gitea/workflows/update-rules.yml +++ b/.gitea/workflows/update-rules.yml @@ -54,7 +54,7 @@ jobs: - name: 生成 README run: | - cat > README.md << 'EOF' + cat > README.md << EOF # Clash Rules 自动同步 [Loyalsoldier/clash-rules](https://github.com/Loyalsoldier/clash-rules) 规则文件。 @@ -76,26 +76,26 @@ jobs: 在 Clash 配置文件中添加: - ```yaml + \`\`\`yaml rule-providers: reject: type: http behavior: domain - url: "https://cdn.jsdelivr.net/gh/${{ github.repository }}@main/ruleset/yaml/reject.yaml" + url: "https://cdn.jsdelivr.net/gh/\${{ github.repository }}@main/ruleset/yaml/reject.yaml" path: ./ruleset/reject.yaml interval: 86400 proxy: type: http behavior: domain - url: "https://cdn.jsdelivr.net/gh/${{ github.repository }}@main/ruleset/yaml/proxy.yaml" + url: "https://cdn.jsdelivr.net/gh/\${{ github.repository }}@main/ruleset/yaml/proxy.yaml" path: ./ruleset/proxy.yaml interval: 86400 cncidr: type: http behavior: ipcidr - url: "https://cdn.jsdelivr.net/gh/${{ github.repository }}@main/ruleset/yaml/cncidr.yaml" + url: "https://cdn.jsdelivr.net/gh/\${{ github.repository }}@main/ruleset/yaml/cncidr.yaml" path: ./ruleset/cncidr.yaml interval: 86400 @@ -105,7 +105,7 @@ jobs: - RULE-SET,cncidr,DIRECT - GEOIP,CN,DIRECT - MATCH,PROXY - ``` + \`\`\` 最后更新: $(date +'%Y-%m-%d %H:%M UTC') EOF