Files
blocklists/.gitea/workflows/sync.yml
T
CodeX 4ecfa39b0c Moved python code to separate script
moved python code to separate script
2026-03-22 16:56:57 +01:00

23 lines
557 B
YAML

name: Sync blocklists from upstream
on:
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Fetch and merge upstream files
run: python3 scripts/merge_blocklists.py
- name: Commit and push if changed
run: |
git config user.name "gitea-actions"
git config user.email "actions@gitea"
git add .
git diff --staged --quiet || git commit -m "Sync blocklists from upstream"
git push