Skip to content

Commit 7dc5b0e

Browse files
committed
ci: Reuse workflow for i18n
1 parent 3740a06 commit 7dc5b0e

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

.github/workflows/i18n.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,5 @@ on:
44
push:
55
branches: [main]
66
jobs:
7-
build:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v4
11-
- uses: actions/setup-python@v5
12-
with:
13-
python-version: '3.11'
14-
cache: pip
15-
cache-dependency-path: '**/requirements*.txt'
16-
- name: Install translate-toolkit
17-
run: |
18-
sudo apt update
19-
sudo apt install gettext translate-toolkit
20-
- run: pip install -r requirements.txt
21-
- run: python manage.py makemessages -a
22-
- name: Count incomplete translations
23-
shell: bash
24-
run: |
25-
output=$(find . -name LC_MESSAGES -not -path "*/en/*" -exec pocount --incomplete --short "{}" +)
26-
echo $output
27-
[ "$output" = "" ]
7+
i18n:
8+
uses: open-contracting/.github/.github/workflows/i18n-django.yml@main

0 commit comments

Comments
 (0)