File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Scheduled Maintenance
2+
3+ on :
4+ schedule :
5+ - cron : ' 30 3 * * *'
6+ workflow_dispatch : {}
7+
8+ permissions :
9+ contents : write
10+
11+ concurrency :
12+ group : maintenance
13+ cancel-in-progress : false
14+
15+ jobs :
16+ maintenance :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - uses : actions/checkout@v4
20+ with :
21+ fetch-depth : 0
22+
23+ - name : Set up Python
24+ uses : actions/setup-python@v4
25+ with :
26+ python-version : ' 3.12'
27+
28+ - name : Install dependencies
29+ run : pip install polib
30+
31+ - name : Update translation status table
32+ run : python3 scripts/generate_status_table.py
33+
34+ - name : Update PO file headers
35+ run : python3 scripts/update_po_headers.py --merge
36+
37+ - name : Update TEAM.md contributor counts
38+ run : python3 scripts/team_stats.py --update-teammd
39+
40+ - name : Commit if changed
41+ run : |
42+ git config user.name "github-actions[bot]"
43+ git config user.email "github-actions[bot]@users.noreply.github.com"
44+ git add --all
45+ git diff --staged --quiet && echo "No changes to commit" && exit 0
46+ git commit -m "chore: update translation status, PO headers, and team credits"
47+ git push
Load diff This file was deleted.
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments