mirror of
https://github.com/darkclip/netlist.git
synced 2026-12-04 07:38:57 +08:00
update
This commit is contained in:
1 parent
a3ada68c25
commit
80ff1b968b
2 files changed
+54
No files matched your search
@@ -0,0 +1,50 @@
|
|||||||
|
name: build net
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ['*']
|
||||||
|
schedule:
|
||||||
|
- cron: '0 16 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-net:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v3
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||||
|
- name: Check out release branch of loyalsoldier/v2ray-rules-dat
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
repository: loyalsoldier/v2ray-rules-dat
|
||||||
|
ref: release
|
||||||
|
path: dat-release
|
||||||
|
- name: Checkout mosdns branch
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: mosdns
|
||||||
|
path: mosdns
|
||||||
|
- name: Rebuild mosdns branch
|
||||||
|
if: github.event_name == 'schedule'
|
||||||
|
run: |
|
||||||
|
rm mosdns/*
|
||||||
|
./exp_mosdns.sh
|
||||||
|
- name: Push to mosdns branch
|
||||||
|
if: github.event_name == 'schedule'
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
cd mosdns
|
||||||
|
tree -H . -P "*.txt" -T "MosDNS List - $(date +%Y-%m-%d)" > index.html
|
||||||
|
git config --global user.name "${GITHUB_ACTOR}"
|
||||||
|
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
|
||||||
|
git add .
|
||||||
|
git commit -m "update $(date +%Y-%m-%d)"
|
||||||
|
git push -q
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
./raydata.py dat-release/geoip.dat -c cn -o mosdns/chinaip.txt geoip
|
||||||
|
./raydata.py dat-release/geosite.dat -c cn -o mosdns/chinasite.txt geosite --formatter format_mosdns.json
|
||||||
Reference in new issue
Block a user