This repository has been archived by the owner on Nov 24, 2024. It is now read-only.
Geodata #103
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.21 | |
- 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: . |