Skip to content

Download adblock source list #241

Download adblock source list

Download adblock source list #241

Workflow file for this run

name: Download adblock source list
on:
schedule:
- cron: 0 */12 * * *
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- 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 -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 -f oisd_small_domainswild.txt
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automatic update