Skip to content

Commit c1623c5

Browse files
committed
Run pre-commit hooks in crowdin sync
1 parent b18f160 commit c1623c5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/crowdin_sync.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ jobs:
4747
with:
4848
fetch-depth: 0
4949

50+
- name: Install python
51+
uses: actions/setup-python@v3
52+
53+
- name: Install pre-commit
54+
run: |
55+
python3 -m pip install pre-commit
56+
pre-commit install
57+
5058
- name: Setup crowdin branch
5159
run: |
5260
ARGS="--base-path=. --config=$CONFIG --project-id=$PROJECT --token=$TOKEN --no-progress"
@@ -69,6 +77,7 @@ jobs:
6977
crowdin download sources $ARGS
7078
LANGUAGES=$(crowdin status translation --plain $ARGS | awk '$2>0 { print "-l" $1 }')
7179
crowdin download $LANGUAGES $ARGS
80+
pre-commit run --all-files
7281
git status -s
7382
git diff
7483
git add .
@@ -99,6 +108,7 @@ jobs:
99108
crowdin download sources $ARGS
100109
LANGUAGES=$(crowdin status translation --plain $ARGS | awk '$2>0 { print "-l" $1 }')
101110
crowdin download $LANGUAGES $ARGS
111+
pre-commit run --all-files
102112
git status -s
103113
git diff
104114

0 commit comments

Comments
 (0)