Skip to content
Snippets Groups Projects
Commit 8f829228 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

use a more accurate representation of the current running version of Metabase.

parent 3d0d139c
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
# Return the version string used to describe this version of Metabase.
VERSION="v0.15.0-snapshot"
TAG=$(git name-rev --tags --name-only HEAD)
TAG=${TAG%^0}
# dynamically pull more interesting stuff from latest git commit
HASH=$(git show-ref --head --hash=7 head) # first 7 letters of hash should be enough; that's what GitHub uses
BRANCH=$(git rev-parse --abbrev-ref HEAD)
DATE=$(git log -1 --pretty=%ad --date=short)
echo "$TAG $HASH $BRANCH $DATE"
# Return the version string used to describe this version of Metabase.
echo "$VERSION $HASH $BRANCH $DATE"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment