From 9929998647581c35e75e73f37aae8bc2b76a7383 Mon Sep 17 00:00:00 2001 From: legiz-ru Date: Mon, 16 Dec 2024 10:53:54 +0300 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 94a7f6d..4dc7528 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -57,7 +57,7 @@ jobs: wget -O re-filter-ip.text https://github.com/1andrevich/Re-filter-lists/raw/main/ipsum.lst mihomo convert-ruleset ipcidr text re-filter-ip.text ip-rule.mrs wget -O ruleset-domain-refilter_domains.json https://github.com/1andrevich/Re-filter-lists/releases/latest/download/ruleset-domain-refilter_domains.json - jq -r '.rules[0].domain as $domain | .rules[0].domainsuffix as $domainsuffix | ($domain + $domainsuffix | unique) | map(select(.) | (if $domainsuffix and length > 0 then (if index(($domainsuffix // [])[0]) != null then "+." + . else . end) else . end)) | .[]' ruleset-domain-refilterdomains.json > domain-rule.list + jq -r '.rules[0].domain as $domain | .rules[0].domainsuffix as $domainsuffix | ($domain + $domainsuffix | unique) | map(select(.) | (if $domainsuffix and length > 0 then (if index(($domainsuffix // [])[0]) != null then "+." + . else . end) else . end)) | .[]' ruleset-domain-refilter_domains.json > domain-rule.list mihomo convert-ruleset domain text domain-rule.list domain-rule.mrs mv domain-rule.mrs domain-rule.list ip-rule.mrs re-filter/