Skip to content

Check and push proxies #2

Check and push proxies

Check and push proxies #2

Workflow file for this run

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:
matrix:
os:
- ubuntu-latest
domains:
- google
- facebook
- twitter
- tiktok
- youtube
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
run: |
git config --global user.email ${{ secrets.GIT_EMAIL }}
git config --local user.name ${{ secrets.GIT_NAME }}
git commit -am "feat: update checked proxies for ${{ matrix.domains }}"
- name: Commit & Push changes
uses: benkaiser/rebase-commit-push@v1.3
with:
rebase: true
message: "feat: update checked proxies for ${{ matrix.domains }}"