-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 1.15 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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