-
Notifications
You must be signed in to change notification settings - Fork 60
47 lines (39 loc) · 1.12 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
name: get proxy
on:
schedule:
- cron: '*/180 * * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo content
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install python packages
run: |
python -m pip install --upgrade pip
pip install requests
pip install rich
pip install pysocks
- name: Pull files
run: |
git config --local user.email "[email protected]"
git config --local user.name "MuRongPIG"
git pull origin main
- name: Get proxies
run: |
python getproxy.py
python checkproxy.py 256
- name: Commit files
run: |
git add -A
git commit -m "Update Proxies (`date '+%F %H:%M %Z'`)" -a
git branch -u origin/main
- name: Push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.TOKEN_GITHUB }}
branch: main