Skip to content

Commit

Permalink
Create proxy_update.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Zlkcyber authored Oct 30, 2024
1 parent a9eae02 commit 55c2be0
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/proxy_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Update Proxy List

on:
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

0 comments on commit 55c2be0

Please sign in to comment.