Skip to content

Commit 30985ab

Browse files
authored
Update CI and RESOURCE.md
Merge pull request #15 from Revisto/update-CI
2 parents 716fc2e + b0c1ba9 commit 30985ab

7 files changed

Lines changed: 690 additions & 664 deletions

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/checkout@v4
2626
with:
2727
repository: python/cpython
28-
ref: 3.14
28+
ref: v3.14.6
2929

3030
- name: Set up Python
3131
uses: actions/setup-python@v4
@@ -40,10 +40,6 @@ jobs:
4040
uses: actions/checkout@v4
4141
with:
4242
path: Doc/locales/fa/LC_MESSAGES
43-
44-
- name: Pull latest translations
45-
run: git pull
46-
working-directory: ./Doc/locales/fa/LC_MESSAGES
4743

4844
- name: Setup problem matcher
4945
uses: sphinx-doc/github-problem-matcher@v1.1

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
with:
2424
python-version: '3.11'
2525

26-
- name: Install sphinx-lint
27-
run: pip install sphinx-lint
26+
- name: Install sphinx-lint and polib
27+
run: pip install sphinx-lint polib
2828

2929
- name: Install gettext tools
3030
run: sudo apt-get install -y gettext
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Update Translation Status
2+
3+
on:
4+
schedule:
5+
- cron: '0 3 * * *'
6+
workflow_dispatch: {}
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
update-status:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.11'
21+
22+
- name: Install dependencies
23+
run: pip install polib
24+
25+
- run: python3 scripts/generate_status_table.py
26+
27+
- name: Commit if changed
28+
run: |
29+
git config user.name "github-actions[bot]"
30+
git config user.email "github-actions[bot]@users.noreply.github.com"
31+
git add RESOURCE.md
32+
git diff --staged --quiet || git commit -m "Update translation status table"
33+
git push

0 commit comments

Comments
 (0)