Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
version 431 B
#!/usr/bin/env bash

VERSION="v0.20.0-snapshot"

# 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)


# Return the version string used to describe this version of Metabase.
echo "$VERSION $HASH $BRANCH $DATE"