Skip to content

Commit

Permalink
include tag in idShort
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Jenkinson committed Dec 15, 2018
1 parent 315c8b2 commit a3a534e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/build-deploy-netlify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ set -e
# GITHUB_TOKEN and NETLIFY_ACCESS_TOKEN set in travis

id=$(git rev-parse HEAD)
idShort=$(echo "$id" | cut -c 1-8)
root="./netlify"
tag=$(git describe --exact-match --tags HEAD 2>/dev/null || echo "")
idShort=$(echo "$id" | cut -c 1-8)
if [ ! -z "$tag" ] && [[ $tag == v* ]]; then
idShort="$idShort ($tag)"
fi
latestSiteId="642d9ad4-f002-4104-9309-40ed9cd81a1f"
stableSiteId="deef7ecf-4c3e-4de0-b6bb-676b02e1c20e"

Expand Down

0 comments on commit a3a534e

Please sign in to comment.