From 82019eb4e8ee3b3fad719f640fccf6b99e4149cc Mon Sep 17 00:00:00 2001 From: arfoux <129370680+arfoux@users.noreply.github.com> Date: Sun, 25 Aug 2024 12:40:21 +0700 Subject: [PATCH] Update action.yml --- .github/workflows/action.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 2abed33..bd1bcf1 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -13,16 +13,20 @@ jobs: - name: Download AdBlock lists run: | + # Download big adblock list echo "Downloading big adblock list..." curl -s 'https://big.oisd.nl/domainswild' -o oisd_big_domainswild.txt awk '/^\*\./ && !x {print "# https://github.com/arfoux/clash-rule-providers \n\npayload:"; x=1} 1' oisd_big_domainswild.txt > big.txt - sed -i 's/^[*]\./ - '+./g' big.txt - rm -fr oisd_big_domainswild.txt + sed -i 's/^\*\./ - \'+./g' big.txt + rm -f oisd_big_domainswild.txt + + # Download small adblock list echo "Downloading small adblock list..." curl -s 'https://small.oisd.nl/domainswild' -o oisd_small_domainswild.txt awk '/^\*\./ && !x {print "# https://github.com/arfoux/clash-rule-providers \n\npayload:"; x=1} 1' oisd_small_domainswild.txt > small.txt - sed -i 's/^[*]\./ - '+./g' small.txt - rm -fr oisd_small_domainswild.txt + sed -i 's/^\*\./ - \'+./g' small.txt + rm -f oisd_small_domainswild.txt + - uses: stefanzweifel/git-auto-commit-action@v4 with: