Make push-trads job branch-agnostic

This commit is contained in:
Luc Didry 2018-06-21 08:45:44 +02:00
parent e790676075
commit 052ba4a0b1
No known key found for this signature in database
GPG key ID: EA868E12D0257E3C

View file

@ -26,6 +26,7 @@ trads:
stage: deploy
image: framasoft/push-trad:latest
script:
- sed -e "s@<project-version>.*</project-version>@<project-version>$CI_COMMIT_REF_SLUG</project-version>@" -i zanata.xml
- if [ ! -z ${ZANATA_CONFIG_FRAMABOT+x} ]; then mkdir -p ${HOME}/.config; echo -e "${ZANATA_CONFIG_FRAMABOT}" > ${HOME}/.config/zanata.ini; fi
- if [ ! -z ${ZANATA_CONFIG_FRAMABOT+x} ]; then make push-locales; fi
only: