We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1443699 commit 5260f93Copy full SHA for 5260f93
generate_api_docs.sh
@@ -1,6 +1,7 @@
1
#!/usr/bin/env bash
2
3
API_DOCS_LANGUAGE=$1
4
+BRANCH_NAME=${2:-trunk}
5
6
case ${API_DOCS_LANGUAGE} in
7
java)
@@ -75,10 +76,10 @@ N | n) exit ;;
75
76
esac
77
78
echo "Committing changes"
-git commit -am "updating API docs"
79
+git commit -am "updating API docs for $API_DOCS_LANGUAGE"
80
81
echo "pushing to origin gh-pages"
82
git push origin gh-pages
83
-echo "switching back to trunk branch"
84
-git checkout trunk
+echo "switching back to designated branch"
85
+git checkout $BRANCH_NAME
0 commit comments