get proxy #16705
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: 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 |