Skip to content

Proxy Updator

Proxy Updator #13269

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Proxy Updator
# Controls when the workflow will run
on:
schedule:
- cron: '0 */2 * * *'
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Install Python3
- name: Install Python 3
uses: actions/setup-python@v2
with:
python-version: 3.8
# Install Dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
# Generate the proxy list
- run: curl -s "${{secrets.UPDATER}}" -o "proxy_list.txt"
# Commit the proxy list to repo
- name: Commit files
run: |
git config --local user.email ${{ secrets.GIT_EMAIL }}
git config --local user.name ${{ secrets.GIT_NAME }}
git add .
git commit -am "Updated Proxies"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
env:
CI: true