name: Sync blocklists from upstream on: schedule: - cron: '0 4 */7 * *' 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