568d27bbf1
Sync blocklists from upstream / sync (push) Successful in 36s
change from 6 hours to 7 days at 04.00
23 lines
557 B
YAML
23 lines
557 B
YAML
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 |