diff --git a/tools/travis-scripts/generate-jsbindings.sh b/tools/travis-scripts/generate-jsbindings.sh index 46d2269890..000390faf1 100755 --- a/tools/travis-scripts/generate-jsbindings.sh +++ b/tools/travis-scripts/generate-jsbindings.sh @@ -132,7 +132,7 @@ git add --verbose -u . git commit --verbose -m "$COMMITTAG : autogenerated bindings" # 4. In JSBindings repo, Push the commit with generated bindings to "master" of the auto generated bindings repository -git push -fq upstream "$GENERATED_BRANCH":master 2> /dev/null +git push -fq upstream "$GENERATED_BRANCH":${TRAVIS_BRANCH} 2> /dev/null popd @@ -153,6 +153,6 @@ git push -fq upstream "$COCOS_BRANCH" 2> /dev/null # 7. -curl --user "${GH_USER}:${GH_PASSWORD}" --request POST --data "{ \"title\": \"$COMMITTAG : updating submodule reference to latest autogenerated bindings\", \"body\": \"\", \"head\": \"${GH_USER}:${COCOS_BRANCH}\", \"base\": \"master\"}" https://api.github.com/repos/cocos2d/cocos2d-x/pulls 2> /dev/null > /dev/null +curl --user "${GH_USER}:${GH_PASSWORD}" --request POST --data "{ \"title\": \"$COMMITTAG : updating submodule reference to latest autogenerated bindings\", \"body\": \"\", \"head\": \"${GH_USER}:${COCOS_BRANCH}\", \"base\": \"${TRAVIS_BRANCH}\"}" https://api.github.com/repos/cocos2d/cocos2d-x/pulls 2> /dev/null > /dev/null popd