Skip to content

Create proxy_update.yml #1

Create proxy_update.yml

Create proxy_update.yml #1

Workflow file for this run

name: Update Proxy List
on:
push:
schedule:
- cron: "0 * * * *"
jobs:
update-proxy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install gitpython requests
- name: Run the getproxy script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python getproxy.py
- name: Push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add proxy.txt
git commit -m "Automatic commit"
git push