get proxy #33382
This file contains hidden or 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 "breakingtechfr@gmail.com" | |
| 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/github-push-action@v0.7.0 | |
| with: | |
| github_token: ${{ secrets.TOKEN_GITHUB }} | |
| branch: main |