Skip to content

Commit

Permalink
Use full hash for new release commitish.
Browse files Browse the repository at this point in the history
  • Loading branch information
trisyoungs committed Jun 19, 2021
1 parent 3d51902 commit 607573b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/scripts/update-release
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ then
# Update tag SHA?
if [ "$UPDATE_TAG_SHA" = "true" ]
then
TAG_HASH=`git rev-parse HEAD`
TAG_HASH=$(git rev-parse HEAD)
echo " -- Updating tag hash to that of the current HEAD (${TAG_HASH})"
RESULT=$(curl ${CURL_OPTS} -XPATCH --header "Authorization: token ${GITHUB_TOKEN}" --data '{ "sha": "'${TAG_HASH}'" }' ${REPO_URL}/git/refs/tags/${RELEASE_TAG})
fi
Expand Down Expand Up @@ -240,7 +240,7 @@ then
echo " A new one will be created."

# Get the hash of the current revision
TAG_HASH=`git rev-parse --short HEAD`
TAG_HASH=$(git rev-parse HEAD)

# Construct release information
RELEASE_DATA='{ "tag_name": "'$RELEASE_TAG'"'
Expand Down

0 comments on commit 607573b

Please sign in to comment.