forked from missuo/ASN-China
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 787 Bytes
/
ci.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
name: Update ASN and IP List
on:
push:
workflow_dispatch:
schedule:
- cron: "0 16 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests lxml
- name: Run Python
run: |
python scripts/ChinaIP.py
python scripts/ChinaASN.py
python scripts/ASN_to_IP.py
python scripts/IPlist_to_yaml.py
python scripts/IPlist_to_CIDR.py
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update IP List