-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (33 loc) · 875 Bytes
/
Copy pathrebuild.yml
File metadata and controls
39 lines (33 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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