Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arfoux authored Aug 25, 2024
1 parent 26f473a commit 82019eb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 82019eb

Please sign in to comment.