CI: Check for missing translations.
This commit is contained in:
parent
51f78956e8
commit
8598dbed63
2 changed files with 34 additions and 0 deletions
24
.github/workflows/check-translations.yml
vendored
Normal file
24
.github/workflows/check-translations.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: Check translations
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "l10n/**"
|
||||
push:
|
||||
paths:
|
||||
- "l10n/**"
|
||||
schedule:
|
||||
- cron: "0 2 * * SUN"
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2.4.0
|
||||
|
||||
- name: Install dependencies
|
||||
run: sudo apt -y update && sudo apt -y install gettext
|
||||
|
||||
- name: Check translations
|
||||
run: make check-translations
|
||||
10
Makefile
10
Makefile
|
|
@ -31,6 +31,16 @@ translationfiles/%/pdfdraw.po: translationtool.phar pot
|
|||
l10n: translationtool.phar
|
||||
./translationtool.phar convert-po-files
|
||||
|
||||
check-translations: l10n
|
||||
@out=$$(git diff l10n); \
|
||||
if [ ! -z "$$out" ]; then \
|
||||
echo; \
|
||||
echo "Found unprocessed translations, need to update folder \"l10n\":"; \
|
||||
echo; \
|
||||
echo "$$out"; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
npm: package.json package-lock.json
|
||||
npm install
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue