Skip to content

Update proxy list - all #61

Update proxy list - all

Update proxy list - all #61

Workflow file for this run

name: Update proxy list - all
on:
schedule:
- cron: '0 */2 * * *'
workflow_dispatch:
jobs:
update-all:
runs-on: ubuntu-latest
environment: production
permissions:
contents: write
concurrency:
group: proxy-commit
cancel-in-progress: false
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: pip install requests click tqdm requests[socks]
- name: Run script
env:
HTTP_URLS: ${{ secrets.HTTP_URLS }}
SOCKS4_URLS: ${{ secrets.SOCKS4_URLS }}
SOCKS5_URLS: ${{ secrets.SOCKS5_URLS }}
MAX_WORKERS: ${{ vars.MAX_WORKERS }}
FETCH_PROXY_TIMEOUT: ${{ vars.FETCH_PROXY_TIMEOUT }}
PROXY_CHECK_TIMEOUT: ${{ vars.PROXY_CHECK_TIMEOUT }}
PROXY_CHECK_RETRIES: ${{ vars.PROXY_CHECK_RETRIES }}
run: |
python main.py -F 'all/all.txt'
python main.py -F 'all/http.txt' --http-only
python main.py -F 'all/socks4.txt' --socks4-only
python main.py -F 'all/socks5.txt' --socks5-only
- name: Commit backups
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'chore: update proxy list'
commit_author: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'