[ci] Fix release script

Now the correct target commitish value should be used
when creating a draft release
This commit is contained in:
Andreas Dangel
2020-01-24 18:49:35 +01:00
parent ce183f5abe
commit 03b8f267e4
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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 \