Attempting to build the lastest tag instead of a hard-coded one

This commit is contained in:
anon8675309 2021-06-19 18:11:57 -05:00 committed by Isaac Connor
parent ffb0e0dd8c
commit 3cf48fc51c
1 changed files with 5 additions and 1 deletions

View File

@ -119,12 +119,16 @@ else
if [ "$SNAPSHOT" == "stable" ]; then
if [ "$BRANCH" == "" ]; then
echo "About to run some basic commands for debugging..."
pwd; ls; git remote -v; git branch -v; git tag -l
pwd; ls; git remote -v; git branch -v; git status
echo "Listing all of the tags for this repo:"
git tag -l
echo "About to get the hash of the most recent tag"
REV=$(git rev-list --tags --max-count=1)
echo "REV = $REV"
BRANCH=`git describe --tags $(git rev-list --tags --max-count=1)`;
echo "BRANCH = $BRANCH"
BRANCH=`git tag -l | sort | grep -v '^v.*' | tail -n 1`
echo "BRANCH = $BRANCH"
if [ "$BRANCH" == "" ]; then
echo "Unable to determine latest stable branch!"
exit 0;