2018-11-26 16:44:05 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# script for syncing translations from transifex and comitting the changes.
|
2018-12-07 08:40:46 -05:00
|
|
|
|
|
|
|
# exit script if any command returns a non-zero return code:
|
|
|
|
set -ev
|
2018-11-26 16:44:05 -05:00
|
|
|
|
2018-11-27 11:05:23 -05:00
|
|
|
npm run pull:editor
|
2019-02-11 11:27:32 -05:00
|
|
|
npm run pull:www
|
2018-12-07 08:40:46 -05:00
|
|
|
npm run test
|
2018-11-26 16:44:05 -05:00
|
|
|
|
2018-12-07 08:40:46 -05:00
|
|
|
# commit any updates and push. Build and release should happen on the push not here.
|
|
|
|
git add .
|
2023-12-20 15:09:33 -05:00
|
|
|
git commit -m "fix: pull new editor translations from Transifex"
|
2018-12-07 08:46:16 -05:00
|
|
|
git push https://${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git HEAD:master
|