Skip to content

get proxy

get proxy #16704

Workflow file for this run

name: get proxy
on:
schedule:
- cron: '*/30 * * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo content
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install python packages
run: |
python -m pip install --upgrade pip
pip install requests
- name: Pull files
run: |
git config --local user.email "[email protected]"
git config --local user.name "BreakingTechFR"
git pull origin main
- name: Get proxies
run: python getproxy.py
- name: Commit files
run: |
git add -A
git commit -m "Update Proxies ---->" -a
git branch -u origin/main
- name: Pull latest changes
run: git pull origin main --rebase
- name: Push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.TOKEN_GITHUB }}
branch: main