Scheduled Maintenance #5
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: Scheduled Maintenance | |
| on: | |
| schedule: | |
| - cron: '30 3 * * *' | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: maintenance | |
| cancel-in-progress: false | |
| jobs: | |
| maintenance: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: pip install polib matplotlib | |
| - name: Update translation status table | |
| run: python3 scripts/generate_status_table.py | |
| - name: Update PO file headers | |
| run: python3 scripts/update_po_headers.py --merge --no-last-translator | |
| - name: Update TEAM.md contributor counts | |
| run: python3 scripts/team_stats.py --update-teammd | |
| - name: Update contributor chart and README stats block | |
| run: python3 scripts/contributor_chart.py | |
| - name: Commit if changed | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add --all | |
| git diff --staged --quiet && echo "No changes to commit" && exit 0 | |
| git commit -m "chore: update translation status, PO headers, team credits, and contributor chart" | |
| git push |