Skip to content

update proxies.json #793

update proxies.json

update proxies.json #793

name: update proxies.json
on:
schedule:
- cron: "0 */1 * * *"
workflow_dispatch: {}
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Update proxies.json
run: python scripts/update_proxies.py
- name: Commit changes if any
run: |
if git diff --quiet proxies.json; then
echo "No changes in proxies.json"
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add proxies.json
git commit -m "Update proxies.json [skip ci]"
git push