-
Notifications
You must be signed in to change notification settings - Fork 16
50 lines (42 loc) · 1.16 KB
/
main.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
name: CI
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download IP list
run: |
set -e # 出现错误时停止执行
rm -f ip.txt
{
wget -qO- https://www.cloudflare-cn.com/ips-v4/#
echo ""
wget -qO- https://www.cloudflare.com/ips-v6/#
} | tee -a ip.txt
- name: Make script executable and install dependencies
run: |
set -e
chmod +x CloudflareST
pip install pandas
- name: Run TLS scan
run: |
set -e
./CloudflareST -httping -cfcolo HKG,KHH,NRT,LAX,SEA,SJC,FRA,MAD
python convert_csv_to_tls.py
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -e
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add *.txt
git commit -m "Update IP list"
git push