Skip to content

Commit fa6ffc3

Browse files
cleanup
1 parent 89db032 commit fa6ffc3

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

sample-workflows/transifex-pull.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,17 @@ jobs:
3636
- run: ./manage_translation.py recreate_tx_config
3737
env:
3838
TX_TOKEN: ${{ secrets.TX_TOKEN }}
39+
LANGUAGE: XX
3940
- run: ./manage_translation.py fetch
4041
env:
4142
TX_TOKEN: ${{ secrets.TX_TOKEN }}
42-
- run: git config --local user.email [email protected]
43-
- run: git config --local user.name "GitHub Action's update-translation job"
44-
- run: |
43+
LANGUAGE: XX
44+
- name: Set up Git
45+
run: |
46+
git config --local user.email [email protected]
47+
git config --local user.name "GitHub Action's update-translation job"
48+
- name: Filter files
49+
run: |
4550
! git diff -I'^"POT-Creation-Date: ' \
4651
-I'^"Language-Team: ' \
4752
-I'^# ' -I'^"Last-Translator: ' \

sample-workflows/transifex-util.py

-4
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,10 @@
88
from argparse import ArgumentParser
99
import os
1010
from contextlib import chdir
11-
from dataclasses import dataclass
12-
from difflib import SequenceMatcher
13-
from logging import info
1411
from pathlib import Path
1512
from subprocess import call
1613
import sys
1714
from tempfile import TemporaryDirectory
18-
from typing import Self, Generator, Iterable
1915
from warnings import warn
2016

2117
from polib import pofile

0 commit comments

Comments
 (0)