Hourly OpenProxyList Fetch #273
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Hourly OpenProxyList Fetch | |
on: | |
schedule: | |
- cron: '0 * * * *' # Runs every hour | |
workflow_dispatch: | |
jobs: | |
fetch-openproxylist: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests | |
- name: Fetch proxy list | |
run: | | |
cd Lists/PROXY/openproxylist.xyz | |
python3 fetch_proxy_list.py | |
- name: List updated files | |
run: ls -lah Lists/PROXY/openproxylist.xyz | |
- name: Commit and Push results | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git pull | |
git add Lists/PROXY/openproxylist.xyz/* | |
git commit -m "Update hourly OpenProxyList proxy list" --allow-empty | |
git push |