diff --git a/.travis/build-deploy.sh b/.travis/build-deploy.sh index 07a838dd67..df07387543 100755 --- a/.travis/build-deploy.sh +++ b/.travis/build-deploy.sh @@ -37,7 +37,7 @@ elif travis_isPush; then echo -e "\n\n" # create a draft github release - gh_releases_createDraftRelease "${TRAVIS_TAG}" "$(git show-ref --hash ${TRAVIS_TAG})" + gh_releases_createDraftRelease "${TRAVIS_TAG}" "$(git rev-list -n 1 ${TRAVIS_TAG})" GH_RELEASE="$RESULT" # Build and deploy to ossrh / maven-central diff --git a/.travis/github-releases-api.sh b/.travis/github-releases-api.sh index 7fde8b837d..f523041111 100644 --- a/.travis/github-releases-api.sh +++ b/.travis/github-releases-api.sh @@ -31,7 +31,7 @@ function gh_releases_createDraftRelease() { ) log_debug "POST https://api.github.com/repos/pmd/pmd/releases" - log_info "Creating gihtub draft release" + log_info "Creating github draft release" RESULT=$(curl --fail -s -H "Authorization: token ${GITHUB_OAUTH_TOKEN}" \ -H "Content-Type: application/json" \ -X POST \