From a2e76a2d336cae49ac70cfd247f4dae430c03b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E5=AD=90=E5=81=A5?= <183465355@qq.com> Date: Tue, 28 May 2024 20:22:21 +0800 Subject: [PATCH] Update run.yml --- .github/workflows/run.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 3752e3b..355d40d 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -36,13 +36,13 @@ jobs: - name: Generate 217heidai file run: | - curl -sSL ${heidai_dns} | grep -Ev "^(#|!|@@)" | grep -v "^[[:space:]]*$" | sed -e 's/^||//; s/\^$//' > 217heidai/adblockdns.txt - curl -sSL ${heidai_dns} | grep -Ev "^(#|!|\|\|)" | grep -v "^[[:space:]]*$" | sed -e 's/^@@||//; s/\^$//' > 217heidai/adblockdns-whitelist.txt + curl -sSL ${heidai_dns} | grep "^||" | sed -e 's/^||//; s/\^$//' > 217heidai/adblockdns.txt + curl -sSL ${heidai_dns} | grep "^@@||" | sed -e 's/^@@||//; s/[\^|]$//' > 217heidai/adblockdns-whitelist.txt - name: Generate AdGuard file run: | - curl -sSL ${AdGuardSDNSFilter} | grep -Ev "^(#|!|@@)" | grep -v "^[[:space:]]*$" | sed -e 's/^||//; s/\^$//' > AdGuard/dnsfilter.txt - curl -sSL ${AdGuardSDNSFilter} | grep -Ev "^(#|!|\|\|)" | grep -v "^[[:space:]]*$" | sed -e 's/^@@||//; s/\^$//' > AdGuard/dnsfilter-whitelist.txt + curl -sSL ${AdGuardSDNSFilter} | grep "^||" | sed -e 's/^||//; s/\^$//' > AdGuard/dnsfilter.txt + curl -sSL ${AdGuardSDNSFilter} | grep "^@@||" | sed -e 's/^@@||//; s/[\^|]$//' > AdGuard/dnsfilter-whitelist.txt - name: Zip 217heidai uses: montudor/action-zip@v1