41
41
42
42
- name : Set language dir variable
43
43
run :
44
- echo "LANGUAGE_DIR=cpython/Doc/locales/$PYDOC_LANGUAGE/LC_MESSAGES" >> $GITHUB_ENV
44
+ echo "LANGUAGE_DIR=cpython/Doc/locales/${{ env. PYDOC_LANGUAGE }} /LC_MESSAGES" >> $GITHUB_ENV
45
45
46
46
- name : Checkout this repository ${{ env.PYDOC_VERSION }}
47
47
uses : actions/checkout@v4
@@ -83,30 +83,30 @@ jobs:
83
83
if : ${{ contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name) }}
84
84
run : |
85
85
# Clean up obsolete files
86
- find ./${LANGUAGE_DIR} -name '*.po' -exec rm {} \;
86
+ find ./${{ env. LANGUAGE_DIR } } -name '*.po' -exec rm {} \;
87
87
./scripts/pull_translations.sh
88
88
env :
89
89
TX_TOKEN : ${{ secrets.TX_TOKEN }}
90
90
91
91
- name : powrap
92
92
if : steps.pull.outcome == 'success'
93
93
run : |
94
- cd ./${LANGUAGE_DIR}
94
+ cd ./${{ env. LANGUAGE_DIR } }
95
95
powrap *.po **/*.po
96
96
97
97
- name : Update statistics
98
98
if : always() && inputs.secrets.TX_TOKEN != 0
99
99
run : |
100
- python ./scripts/tx_stats.py > ./${LANGUAGE_DIR}/stats.json
101
- git -C ./${LANGUAGE_DIR} diff stats.json
100
+ python ./scripts/tx_stats.py > ./${{ env. LANGUAGE_DIR } }/stats.json
101
+ git -C ./${{ env. LANGUAGE_DIR } } diff stats.json
102
102
env :
103
103
TX_TOKEN : ${{ secrets.TX_TOKEN }}
104
104
105
105
- name : Update potodo.md
106
106
if : always()
107
107
run : |
108
108
./scripts/potodo.sh
109
- git diff ./${LANGUAGE_DIR}/potodo.md
109
+ git diff ./${{ env. LANGUAGE_DIR } }/potodo.md
110
110
111
111
# 4- Commit and push translations
112
112
@@ -116,7 +116,7 @@ jobs:
116
116
- name : Push
117
117
if : ${{ contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name) }}
118
118
run : |
119
- cd ./${LANGUAGE_DIR}
119
+ cd ./${{ env. LANGUAGE_DIR } }
120
120
git push
121
121
122
122
0 commit comments