This repository was archived by the owner on Nov 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +3035
-1838
lines changed
Expand file tree Collapse file tree 7 files changed +3035
-1838
lines changed Original file line number Diff line number Diff line change 1+ name : Geodata
2+
3+ on :
4+ schedule :
5+ - cron : " 0 0 * * 0"
6+ workflow_dispatch :
7+
8+ permissions :
9+ contents : write
10+ # packages: write
11+ # issues: write
12+
13+ jobs :
14+ fetch :
15+ name : Build Geodata
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ - uses : actions/checkout@v3
20+ - name : Set up Python
21+ uses : actions/setup-python@v2
22+ with :
23+ python-version : " 3.10.9"
24+
25+ - name : Setup Go
26+ uses : actions/setup-go@v3
27+ with :
28+ go-version : 1.19
29+
30+ - name : Run python program
31+ run : |
32+ python utils/geodata.py raw
33+ python utils/geodata.py qv2ray
34+ mv utils/*.txt utils/*.json geodata
35+
36+ - name : Create .dat file
37+ run : |
38+ git clone https://github.com/v2fly/domain-list-community
39+ rm -rf domain-list-community/data/*
40+
41+ cp geodata/IranIPs.txt domain-list-community/data/ir
42+ cd domain-list-community
43+
44+ go run ./ --outputdir=../out
45+ cd ../out
46+
47+ mv dlc.dat iran.dat
48+ mv iran.dat ../
49+ cd ../
50+
51+ rm -rf domain-list-community
52+ mv *.dat *.txt *.json geodata
53+
54+ - uses : stefanzweifel/git-auto-commit-action@v4
55+ with :
56+ commit_message : Updated geodata
57+ file_pattern : " geodata/*.dat geodata/*.txt geodata/*.json"
58+ repository : .
You can’t perform that action at this time.
0 commit comments