Download adblock source list #232
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |