Skip to content

Commit

Permalink
last commit message now should be included in the git tag being set c…
Browse files Browse the repository at this point in the history
  • Loading branch information
xpl committed Oct 31, 2017
1 parent a0cca47 commit 2808e6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion push.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/sh

LAST_COMMIT_MESSAGE="$(git log -1 --pretty=%B)"
git config --global user.email "[email protected]"
git config --global user.name "Travis CI"
git add --force build/ccxt.browser.js
git commit -a -m "${COMMIT_MESSAGE}" -m '[ci skip]'
git tag -a "${COMMIT_MESSAGE}" -m "${COMMIT_MESSAGE}" -m '[ci skip]'
git tag -a "${COMMIT_MESSAGE}" -m "${COMMIT_MESSAGE}" -m "${LAST_COMMIT_MESSAGE}" -m '[ci skip]'
git remote remove origin
git remote add origin https://${GITHUB_TOKEN}@github.com/ccxt/ccxt.git
git push origin --tags HEAD:master

0 comments on commit 2808e6c

Please sign in to comment.