Skip to content

Update geo lists

Update geo lists #48

name: Update geo lists
on:
schedule:
- cron: "0 3 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: python geo-update.py
- run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add geo/ geoip.txt geosite.txt || true
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "Update geoip/geosite lists"
git push
fi