-
Notifications
You must be signed in to change notification settings - Fork 37
59 lines (47 loc) · 1.36 KB
/
geodata.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Geodata
on:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
permissions:
contents: write
# packages: write
# issues: write
jobs:
fetch:
name: Build Geodata
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10.9"
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Run python program
run: |
python utils/geodata.py raw
python utils/geodata.py qv2ray
python utils/geodata.py clash
- name: Create .dat file
run: |
git clone https://github.com/v2fly/domain-list-community
rm -rf domain-list-community/data/*
cp geodata/IranIPs.txt domain-list-community/data/ir
cp ads.txt domain-list-community/data/ads
cd domain-list-community
go run ./ --outputdir=../out
cd ../out
mv dlc.dat iran.dat
mv iran.dat ../
cd ../
rm -rf domain-list-community
mv *.dat *.txt *.json *.yaml geodata
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Updated geodata
file_pattern: "geodata/*.dat geodata/*.txt geodata/*.json geodata/*.yaml"
repository: .