skip if PO-Revision-Date is less than last CI created time
This commit is contained in:
parent
a567650bef
commit
9d98761ad9
|
@ -20,6 +20,10 @@ for file in ./translations-*.po; do
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if (( $(date -d $(awk '/PO-Revision-Date/{print $2}' ${file} +%s)) < $CI_PREV_BUILD_CREATED )); then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
msgfmt "$file" -o game.mo
|
msgfmt "$file" -o game.mo
|
||||||
PATH=$(pwd)/renpy:${PATH} RENPY_DIR=$(pwd)/renpy python3 rttk-queerscriptors/mo2tl.py $(pwd)/game-source game.mo ${lang}
|
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}/*
|
zip "${lang}.zip" game-source/game/tl/${lang}/*
|
||||||
|
|
Loading…
Reference in a new issue