Rebuild list #116
This file contains hidden or 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: 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 |