From 26f473a75437771474322d9257a68d25db1a08a6 Mon Sep 17 00:00:00 2001 From: arfoux <129370680+arfoux@users.noreply.github.com> Date: Sun, 25 Aug 2024 12:32:38 +0700 Subject: [PATCH] Update action.yml --- .github/workflows/action.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 6813845..2abed33 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -15,17 +15,14 @@ jobs: run: | 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 echo "Downloading small adblock list..." curl -s 'https://small.oisd.nl/domainswild' -o oisd_small_domainswild.txt - - - name: Rename files - run: | - mv oisd_big_domainswild.txt big.txt - mv oisd_small_domainswild.txt small.txt - - - name: Clean up original files - run: | - rm -fr oisd_big.yamle oisd_big_domainswild.txt 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 - uses: stefanzweifel/git-auto-commit-action@v4 with: