diff options
-rw-r--r-- | ci/submit_i18n_pr.sh | 14 | ||||
-rw-r--r-- | circle.yml | 9 |
2 files changed, 15 insertions, 8 deletions
diff --git a/ci/submit_i18n_pr.sh b/ci/submit_i18n_pr.sh new file mode 100644 index 000000000..517740a7c --- /dev/null +++ b/ci/submit_i18n_pr.sh @@ -0,0 +1,14 @@ +wget https://github.com/github/hub/releases/download/v2.2.1/hub-linux-amd64-2.2.1.tar.gz +tar xvfz hub-linux-amd64-2.2.1.tar.gz +sudo mv hub-linux-amd64-2.2.1/hub /usr/local/bin/ +sudo chmod +x /usr/local/bin/hub + + +cat > ~/.config/hub << EOF +github.com: +- user: ${HUB_USER} + oauth_token: ${HUB_TOKEN} + protocol: https +EOF + +hub pull-request -b trunk -m "Automatic translation import" diff --git a/circle.yml b/circle.yml index e51f766bb..0f557e94b 100644 --- a/circle.yml +++ b/circle.yml @@ -77,14 +77,7 @@ deployment: branch: /i18n.*/ owner: navit-gps commands: - - git config --global user.email "circleci@navit-project.org" - - git config --global user.name "CircleCI" - - git checkout trunk - - git pull origin trunk - - cp $CIRCLE_ARTIFACTS/po/* po/ - - git add po/*.po.in - - git commit -m "Automatic translation import from launchpad" po/*.po.in - - git push + - bash ci/submit_i18n_pr.sh notify: webhooks: - url: http://62.210.125.30:8000/ |