Skip to content

Commit 715a5e6

Browse files
committed
Merge some .yml files
1 parent 5d6d3da commit 715a5e6

3 files changed

Lines changed: 47 additions & 62 deletions

File tree

.github/workflows/maintenance.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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

.github/workflows/translation-status.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/update-po-headers.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)