@@ -31,37 +31,35 @@ jobs:
31
31
with :
32
32
repository : python/cpython
33
33
ref : main
34
- path : cpython
35
34
- run : make gettext
36
- working-directory : cpython /Doc
35
+ working-directory : . /Doc
37
36
- run : sphinx-intl create-txconfig
38
- working-directory : cpython /Doc/build
37
+ working-directory : . /Doc/build
39
38
- run : sphinx-intl update-txconfig-resources --transifex-organization-name python-doc --transifex-project-name python-newest -d . -p gettext
40
- working-directory : cpython /Doc/build
39
+ working-directory : . /Doc/build
41
40
env :
42
41
TX_TOKEN : ${{ secrets.TX_TOKEN }}
43
42
- run : tx pull -l uk --force --skip
44
- working-directory : cpython /Doc/build
43
+ working-directory : . /Doc/build
45
44
env :
46
45
TX_TOKEN : ${{ secrets.TX_TOKEN }}
47
46
- run : find -name "*.po" -exec msgcat --no-location -o {} {} \;
48
- working-directory : cpython /Doc/build
47
+ working-directory : . /Doc/build
49
48
- uses : actions/checkout@master
50
49
with :
51
50
ref : ${{ matrix.version }}
52
- path : python-docs-uk
53
- - run : rsync -r --del --exclude .git --exclude Makefile cpython/Doc/build/uk/LC_MESSAGES/ python-docs-uk
51
+ path : ./Doc/build/uk/LC_MESSAGES
54
52
- run : |
55
53
git config --local user.email github-actions@github.com
56
54
git config --local user.name "GitHub Action's update-translation job"
57
- git add .
55
+ git add -f .
58
56
git commit -m 'Update translation from Transifex' || true
59
- working-directory: python-docs-uk
57
+ working-directory: ./Doc/build/uk/LC_MESSAGES
60
58
- uses : ad-m/github-push-action@master
61
59
with :
62
60
branch : ${{ matrix.version }}
63
61
github_token : ${{ secrets.GITHUB_TOKEN }}
64
- directory : python-docs-uk
62
+ directory : ./Doc/build/uk/LC_MESSAGES
65
63
66
64
lint-translation :
67
65
runs-on : ubuntu-latest
@@ -105,7 +103,7 @@ jobs:
105
103
- run : git pull
106
104
working-directory : ./Doc/locales/uk/LC_MESSAGES
107
105
- uses : sphinx-doc/github-problem-matcher@v1.1
108
- - run : make -e SPHINXOPTS="--color - D language='uk' -W --keep-going" ${{ matrix.format }}
106
+ - run : make -e SPHINXOPTS="-D language='uk' -D gettext_compact=0 - W --keep-going --color " ${{ matrix.format }}
109
107
working-directory : ./Doc
110
108
- uses : actions/upload-artifact@master
111
109
if : success() || failure()
0 commit comments