-
Notifications
You must be signed in to change notification settings - Fork 16
50 lines (39 loc) · 1.11 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 */4 * * *'
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: write
jobs:
check-bats-version:
runs-on:
group: Default
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download IP list
run: wget -O ip.txt https://www.cloudflare-cn.com/ips-v4/#
- name: Make script executable
run: chmod +x CloudflareST
- name: TLS
run: ./CloudflareST -tp 443 -n 1000 -tlr 0 -cfcolo HKG
- name: convert_csv_to_tls
run: python convert_csv_to_tls.py
- name: notls
run: ./CloudflareST -tp 80 -n 1000 -tlr 0 -cfcolo HKG
- name: convert_csv_to_notls
run: python convert_csv_to_tls.py notls
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
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