forked from phoedos/pmd
[ci] Fix release script
Now the correct target commitish value should be used when creating a draft release
This commit is contained in:
@@ -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
|
||||
|
@@ -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 \
|
||||
|
Reference in New Issue
Block a user