From 55c2be0659629ae8b9f839cca34e5c33261346c1 Mon Sep 17 00:00:00 2001 From: ZLKCyber <88219725+Zlkcyber@users.noreply.github.com> Date: Wed, 30 Oct 2024 16:47:04 +0800 Subject: [PATCH] Create proxy_update.yml --- .github/workflows/proxy_update.yml | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/proxy_update.yml diff --git a/.github/workflows/proxy_update.yml b/.github/workflows/proxy_update.yml new file mode 100644 index 00000000..d22086a8 --- /dev/null +++ b/.github/workflows/proxy_update.yml @@ -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