Skip to content

Commit 82ebae3

Browse files
author
thibeaum
committed
initial commit
1 parent 82f95a8 commit 82ebae3

18 files changed

Lines changed: 68440 additions & 0 deletions

File tree

.github/workflows/update.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Update proxy list
2+
3+
on:
4+
schedule:
5+
# Every 5 minutes. GitHub may delay scheduled workflows under load — the
6+
# real upstream cadence is "every minute" on the API, this mirror is a
7+
# 5-minute snapshot.
8+
- cron: "*/5 * * * *"
9+
workflow_dispatch:
10+
push:
11+
branches: [main]
12+
paths:
13+
- "scripts/update.py"
14+
- ".github/workflows/update.yml"
15+
16+
# Cancel any older in-flight run if a new tick arrives while the previous one
17+
# is still going — keeps the history clean and avoids fighting over the same
18+
# files on slow API responses.
19+
concurrency:
20+
group: update-proxy-list
21+
cancel-in-progress: true
22+
23+
permissions:
24+
contents: write
25+
26+
jobs:
27+
update:
28+
runs-on: ubuntu-latest
29+
timeout-minutes: 10
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
with:
34+
persist-credentials: true
35+
36+
- name: Set up Python
37+
uses: actions/setup-python@v5
38+
with:
39+
python-version: "3.12"
40+
41+
- name: Refresh proxy data
42+
run: python scripts/update.py
43+
44+
- name: Commit and push changes
45+
run: |
46+
git config user.name "github-actions[bot]"
47+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
48+
if [ -z "$(git status --porcelain)" ]; then
49+
echo "No changes — upstream list is unchanged this tick."
50+
exit 0
51+
fi
52+
TS=$(date -u +"%Y-%m-%d %H:%M:%S UTC")
53+
git add proxies/
54+
git commit -m "chore(data): automatic update — $TS"
55+
git push

proxies/all/data.csv

Lines changed: 2001 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)