Skip to content

Commit 518690e

Browse files
authored
Remove obsolete PO files in CI before tx-pull (#191)
* Remove obsolete PO files in CI before tx-pull * lint * Actually delete po files found
1 parent eb541c8 commit 518690e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,14 @@ jobs:
192192
env:
193193
TX_TOKEN: ${{ secrets.TX_TOKEN }}
194194

195+
# Remove PO files to pull and store exactly what is in Transifex, without leftovers
195196
- name: Pull translations for all languages
196197
if: ${{ github.event_name == 'schedule' ||
197198
(github.event_name == 'workflow_dispatch' && github.event.inputs.pull == 'true') }}
198199
working-directory: cpython/Doc/locales
199200
run: |
201+
find ./* -type f -name '*.po' -delete
202+
find ./* -type d -empty -print -delete
200203
tx pull --all --translations --force
201204
env:
202205
TX_TOKEN: ${{ secrets.TX_TOKEN }}

0 commit comments

Comments
 (0)