This commit is contained in:
Alexandre Aubin 2022-01-11 16:14:20 +01:00
parent 04a92e547d
commit a118a5a132

View file

@ -23,7 +23,7 @@ autofix-translated-strings:
script: script:
# create a local branch that will overwrite distant one # create a local branch that will overwrite distant one
- git checkout -b "ci-autofix-translated-strings-${CI_COMMIT_REF_NAME}" --no-track - git checkout -b "ci-autofix-translated-strings-${CI_COMMIT_REF_NAME}" --no-track
- python3 maintenance/missing_i18n_keys --fix - python3 maintenance/missing_i18n_keys.py --fix
- python3 maintenanceautofix_locale_format.py - python3 maintenanceautofix_locale_format.py
- '[ $(git diff -w | wc -l) != 0 ] || exit 0' # stop if there is nothing to commit - '[ $(git diff -w | wc -l) != 0 ] || exit 0' # stop if there is nothing to commit
- git commit -am "[CI] Reformat / remove stale translated strings" || true - git commit -am "[CI] Reformat / remove stale translated strings" || true