Skip to content

Commit e3dfa64

Browse files
testing
1 parent 1568cfc commit e3dfa64

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎.github/workflows/transifex-pull.yml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
with:
3636
ref: ${{ matrix.version }}
3737
fetch-depth: 0
38-
- run: curl -O https://raw.githubusercontent.com/python-docs-translations/transifex-automation/master/sample-workflows/transifex-util.py
38+
- run: curl -O https://raw.githubusercontent.com/StanFromIreland/workflow-testing/blob/3.14/transifex-util.py
3939
- run: chmod +x transifex-util.py
4040
- run: ./transifex-util.py recreate_tx_config --language de --project-slug python-newest --version 3.14
4141
env:
@@ -50,12 +50,11 @@ jobs:
5050
git config --local user.name "GitHub Action's update-translation job"
5151
- name: Filter files
5252
run: |
53-
git diff -I'^"POT-Creation-Date: ' \
53+
! git diff -I'^"POT-Creation-Date: ' \
5454
-I'^"Language-Team: ' \
5555
-I'^# ' -I'^"Last-Translator: ' \
5656
--exit-code \
5757
&& echo "SIGNIFICANT_CHANGES=1" >> $GITHUB_ENV || exit 0
58-
- run: echo "SIGNIFICANT_CHANGES=1" >> $GITHUB_ENV
5958
- run: git add .
6059
- run: git commit -m 'Update translation from Transifex'
6160
if: env.SIGNIFICANT_CHANGES

‎transifex-util.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def fetch():
2525
sys.stderr.write("The Transifex client app is required.\n")
2626
exit(code)
2727
lang = LANGUAGE
28-
_call(f'tx pull -l {lang} --minimum-perc=1 --force --skip')
28+
_call(f'tx pull -l {lang} --force') # --minimum-perc=1 --force --skip')
2929
for file in Path().rglob('*.po'):
3030
_call(f'msgcat --no-location -o {file} {file}')
3131

0 commit comments

Comments
 (0)