Check and push proxies #2055
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
- tiktok | |
- youtube | |
- microsoft | |
- discord | |
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 }}" |