4ecfa39b0c
moved python code to separate script
23 lines
557 B
YAML
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 |