skip if PO-Revision-Date is less than last CI created time

This commit is contained in:
HackerNCoder 2023-02-11 02:56:03 +01:00
parent a567650bef
commit 9d98761ad9

View file

@ -20,6 +20,10 @@ for file in ./translations-*.po; do
continue
fi
if (( $(date -d $(awk '/PO-Revision-Date/{print $2}' ${file} +%s)) < $CI_PREV_BUILD_CREATED )); then
continue
fi
msgfmt "$file" -o game.mo
PATH=$(pwd)/renpy:${PATH} RENPY_DIR=$(pwd)/renpy python3 rttk-queerscriptors/mo2tl.py $(pwd)/game-source game.mo ${lang}
zip "${lang}.zip" game-source/game/tl/${lang}/*