From 7d3a81799f3f4df44baef6073ade4ac9c8077fc1 Mon Sep 17 00:00:00 2001 From: chrisgarrity Date: Fri, 7 Dec 2018 08:46:16 -0500 Subject: [PATCH] fix bad condition and add auth And commit to master --- .travis.yml | 4 ++-- scripts/update-translations.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0825ce1f..6652bb8d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,10 +8,10 @@ cache: jobs: include: - stage: update translations - if: $TRAVIS_EVENT_TYPE == cron + if: type == cron script: ./scripts/update-translations.sh - stage: npm release - if: (branch = master OR branch = npm-publish) AND $TRAVIS_EVENT_TYPE != cron + if: branch in (master, npm-publish) AND type != cron node_js: 8 script: npm run build before_deploy: diff --git a/scripts/update-translations.sh b/scripts/update-translations.sh index 7f876cbc..8cea76a7 100755 --- a/scripts/update-translations.sh +++ b/scripts/update-translations.sh @@ -11,4 +11,4 @@ npm run test # commit any updates and push. Build and release should happen on the push not here. git add . git commit -m "pull new editor translations from Transifex" -git push +git push https://${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git HEAD:master