Skip to content

Commit 9031870

Browse files
committed
[ci] Fix github releases script
1 parent 9590a40 commit 9031870

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ elif [ "${TRAVIS_REPO_SLUG}" = "pmd/pmd-eclipse-plugin" ] && [ "${TRAVIS_PULL_RE
2727
log_info "This is a release build for tag ${TRAVIS_TAG} (version: ${VERSION})"
2828

2929
# create a draft github release
30-
gh_releases_createDraftRelease "${TRAVIS_TAG}" "$(git show-ref --hash ${TRAVIS_TAG})"
30+
gh_releases_createDraftRelease "${TRAVIS_TAG}" "$(git rev-list -n 1 ${TRAVIS_TAG})"
3131
GH_RELEASE="$RESULT"
3232

3333
# Deploy the update site to bintray

.travis/github-releases-api.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ EOF
3131
)
3232

3333
log_debug "POST https://api.github.com/repos/pmd/pmd-eclipse-plugin/releases"
34-
log_info "Creating gihtub draft release"
34+
log_info "Creating github draft release"
3535
RESULT=$(curl --fail -s -H "Authorization: token ${GITHUB_OAUTH_TOKEN}" \
3636
-H "Content-Type: application/json" \
3737
-X POST \

0 commit comments

Comments
 (0)