Skip to content

Commit 2cd5b30

Browse files
authored
ci: use long ref to commit when creating release (#830)
Signed-off-by: Vincent Boutour <vincent.boutour@datadoghq.com>
1 parent fcaf652 commit 2cd5b30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws/logs_monitoring/release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ prod_release() {
198198
git commit --signoff --message "ci(release): Update version from ${CURRENT_VERSION} to ${FORWARDER_VERSION}"
199199
fi
200200

201-
GIT_COMMIT="$(git rev-parse --short HEAD)"
201+
GIT_COMMIT="$(git rev-parse HEAD)"
202202
log_info "Using ${GIT_COMMIT} commit as the release target..."
203203

204204
if [[ ! -e ${BUNDLE_PATH} ]] || ! user_confirm "Bundle already exists. Do you want to use it" "true"; then
@@ -216,7 +216,7 @@ prod_release() {
216216
git push origin master
217217

218218
# Create a GitHub release
219-
log_info "Releasing aws-dd-forwarder-${FORWARDER_VERSION} to GitHub..."
219+
log_info "Releasing aws-dd-forwarder-${FORWARDER_VERSION}, targetting commit ${GIT_COMMIT}, to GitHub..."
220220
hub release create -a "${BUNDLE_PATH}" -m "aws-dd-forwarder-${FORWARDER_VERSION}" -t "${GIT_COMMIT}" "aws-dd-forwarder-${FORWARDER_VERSION}"
221221

222222
# Set vars for use in the installation test

0 commit comments

Comments
 (0)