Import blocklists #701
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Import blocklists | |
on: | |
push: | |
paths: | |
- 'sources/imports/**.txt' | |
schedule: | |
- cron: '42 3,15 * * *' | |
workflow_dispatch: | |
jobs: | |
import: | |
name: Import blocklists | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Run import | |
run: ./scripts/import.sh | |
- name: Run update | |
run: ./scripts/update.sh | |
- name: Commit and push | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add -A | |
if git commit -m "Import blocklists"; then | |
git push | |
fi |