Skip to content

Rebuild list

Rebuild list #116

Workflow file for this run

name: Rebuild list
on:
schedule:
- cron: "17 6 * * *" # 06:17 UTC nightly
workflow_dispatch:
push:
paths:
- "sources/**"
- "scripts/build.py"
- ".github/workflows/rebuild.yml"
permissions:
contents: write
jobs:
rebuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Rebuild data files
run: python3 scripts/build.py
- name: Commit if changed
run: |
git config user.name "suppression-bot"
git config user.email "bot@users.noreply.github.com"
if git diff --quiet data/; then
echo "No changes to commit"
else
git add data/
git commit -m "Nightly rebuild ($(date -u +%Y-%m-%d))"
git push
fi