mirror of
https://github.com/Toperlock/sing-box-geosite.git
synced 2025-08-02 14:57:35 +08:00
add AdGuard DNS Filter rule-set
This commit is contained in:
parent
a13a3d13e9
commit
12a3090bf7
18
.github/workflows/sync.yml
vendored
18
.github/workflows/sync.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- name: "Setup sing-box"
|
||||
env:
|
||||
SING_BOX_DEB_URL: "https://github.com/SagerNet/sing-box/releases/download/v1.9.0/sing-box_1.9.0_linux_amd64.deb"
|
||||
SING_BOX_DEB_URL: "https://github.com/SagerNet/sing-box/releases/download/v1.10.0-alpha.25/sing-box_1.10.0-alpha.25_linux_amd64.deb"
|
||||
run: |
|
||||
set -Eeuo pipefail
|
||||
wget -O sing-box.deb $SING_BOX_DEB_URL
|
||||
@ -28,6 +28,22 @@ jobs:
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pandas requests pyyaml
|
||||
- name: Download content
|
||||
run: |
|
||||
URL="https://raw.githubusercontent.com/AdguardTeam/AdguardFilters/master/BaseFilter/sections/adservers.txt"
|
||||
OUTPUT_FILE="./rule/adservers.txt"
|
||||
|
||||
curl -L $URL -o $OUTPUT_FILE
|
||||
|
||||
if [ -f "$OUTPUT_FILE" ]; then
|
||||
echo "Download successful: $OUTPUT_FILE"
|
||||
else
|
||||
echo "Download failed."
|
||||
exit 1
|
||||
fi
|
||||
- name: Convert AdGuard DNS Filter to sing-box rule set
|
||||
run: |
|
||||
sing-box rule-set convert --type adguard --output ./rule/adservers.srs ./rule/adservers.txt
|
||||
- name: Run script
|
||||
run: python ../main.py
|
||||
working-directory: ./rule/
|
||||
|
Loading…
x
Reference in New Issue
Block a user