Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

getproxy

getproxy #66587

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: getproxy
on:
push:
branches: [ master ]
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '*/15 * * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.5
uses: actions/setup-python@v2
with:
python-version: 3.5
- name: setup env & install getproxy
run: |
git config --global user.name "fate0"
git config --global user.email "[email protected]"
pip install git+https://github.com/fate0/getproxy.git@master
- name: run getproxy
run: |
getproxy --in-proxy=proxy.list --out-proxy=proxy.list.out
mv proxy.list.out proxy.list
- name: commit
run: |
rm -rf .git
git init
git add .
git commit -m "`env TZ=Asia/Shanghai date`"
git remote add origin [email protected]:fate0/proxylist.git
- name: push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master
force: true