ci: extract translation check to script so we can run standalone
parent
1c62ddffc4
commit
ba67c506f2
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
old_pot=$(mktemp)
|
||||||
|
cp po/com.mitchellh.ghostty.pot "$old_pot"
|
||||||
|
zig build update-translations
|
||||||
|
|
||||||
|
# Compare previous POT to current POT
|
||||||
|
msgcmp "$old_pot" po/com.mitchellh.ghostty.pot --use-untranslated
|
||||||
|
|
||||||
|
# Compare all other POs to current POT
|
||||||
|
for f in po/*.po; do
|
||||||
|
# Ignore untranslated entries
|
||||||
|
msgcmp --use-untranslated "$f" po/com.mitchellh.ghostty.pot;
|
||||||
|
done
|
||||||
|
|
@ -757,19 +757,7 @@ jobs:
|
||||||
skipPush: true
|
skipPush: true
|
||||||
useDaemon: false # sometimes fails on short jobs
|
useDaemon: false # sometimes fails on short jobs
|
||||||
- name: check translations
|
- name: check translations
|
||||||
run: |
|
run: nix develop -c .github/scripts/check-translations.sh
|
||||||
old_pot=$(mktemp)
|
|
||||||
cp po/com.mitchellh.ghostty.pot "$old_pot"
|
|
||||||
nix develop -c zig build update-translations
|
|
||||||
|
|
||||||
# Compare previous POT to current POT
|
|
||||||
msgcmp "$old_pot" po/com.mitchellh.ghostty.pot --use-untranslated
|
|
||||||
|
|
||||||
# Compare all other POs to current POT
|
|
||||||
for f in po/*.po; do
|
|
||||||
# Ignore untranslated entries
|
|
||||||
msgcmp --use-untranslated "$f" po/com.mitchellh.ghostty.pot;
|
|
||||||
done
|
|
||||||
|
|
||||||
blueprint-compiler:
|
blueprint-compiler:
|
||||||
if: github.repository == 'ghostty-org/ghostty'
|
if: github.repository == 'ghostty-org/ghostty'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue