File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 7
7
branches :
8
8
- ' *'
9
9
workflow_dispatch :
10
+ permissions :
11
+ contents : write
10
12
11
13
jobs :
12
14
update-translation :
@@ -32,14 +34,15 @@ jobs:
32
34
with :
33
35
ref : ${{ matrix.version }}
34
36
fetch-depth : 0
35
- - run : curl https://raw.githubusercontent.com/python-docs-translations/transifex-automation/master/sample-workflows/transifex-util.py
36
- - run : ./manage_translation.py recreate_tx_config --language XX --project-slug python-newest --version 3.14
37
+ - run : curl -O https://raw.githubusercontent.com/python-docs-translations/transifex-automations/master/sample-workflows/transifex-util.py
38
+ - run : chmod +x transifex-util.py
39
+ - run : ./transifex-util.py recreate_tx_config --language XX --project-slug python-newest --version 3.14
37
40
env :
38
41
TX_TOKEN : ${{ secrets.TX_TOKEN }}
39
- - run : ./manage_translation .py fetch --language XX --project-slug python-newest --version 3.13
42
+ - run : ./transifex-util .py fetch --language XX --project-slug python-newest --version 3.14
40
43
env :
41
44
TX_TOKEN : ${{ secrets.TX_TOKEN }}
42
- - run : ./manage_translation .py delete_obsolete_files --language XX --project-slug python-newest --version 3.14
45
+ - run : ./transifex-util .py delete_obsolete_files --language XX --project-slug python-newest --version 3.14
43
46
- name : Set up Git
44
47
run : |
45
48
git config --local user.email [email protected]
48
51
run : |
49
52
! git diff -I'^"POT-Creation-Date: ' \
50
53
-I'^"Language-Team: ' \
51
- -I'^# ' -I'^"Last-Translator: ' \
54
+ -I'^# ' -I'^"Last-Translator: ' \
52
55
--exit-code \
53
56
&& echo "SIGNIFICANT_CHANGES=1" >> $GITHUB_ENV || exit 0
54
57
- run : git add .
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def fetch():
25
25
sys .stderr .write ("The Transifex client app is required.\n " )
26
26
exit (code )
27
27
lang = LANGUAGE
28
- _call (f'tx pull -l { lang } --minimum-perc=1 -- force --skip' )
28
+ _call (f'tx pull -l { lang } --force' ) # XXX Do we pull everything?
29
29
for file in Path ().rglob ('*.po' ):
30
30
_call (f'msgcat --no-location -o { file } { file } ' )
31
31
You can’t perform that action at this time.
0 commit comments