-
Notifications
You must be signed in to change notification settings - Fork 4
64 lines (55 loc) · 1.58 KB
/
checkProxy.yaml
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
60
61
62
63
64
name: Check and push proxies
on:
workflow_run:
workflows:
- Get Proxies and push proxies
branches:
- main
types:
- completed
permissions:
contents: write
jobs:
test_proxies:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
fail-fast: false
matrix:
os:
- ubuntu-latest
domains:
- google
- facebook
- twitter
- tiktok
- youtube
- whatsapp
- microsoft
- discord
- instagram
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Check HTTP proxies
run: |
python3 proxyChecker.py -t 20 -s ${{ matrix.domains }}.com -l proxies/http.txt -o proxies/http-tested/${{ matrix.domains }}.txt
- name: Check HTTPS proxies
run: |
python3 proxyChecker.py -t 20 -s ${{ matrix.domains }}.com -l proxies/https.txt -o proxies/https-tested/${{ matrix.domains }}.txt
- name: Commit & Push changes
uses: benkaiser/rebase-commit-push@v1.3
with:
rebase: true
author_email: github-actions@github.com
author_name: github-actions[bot]
branch: main
message: "feat: update checked proxies for ${{ matrix.domains }}"