Skip to content

Commit b279cdd

Browse files
committed
bin/make-snapshot: Correctly identify next release
1 parent ac844e6 commit b279cdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/make-snapshot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [ -z $BRANCH ]; then
1010
exit 1
1111
fi
1212

13-
LATEST_TAG=$(git for-each-ref refs/tags --sort=-taggerdate --format='%(refname)' --count=1 | awk -F/ '{print $3}')
13+
LATEST_TAG=$(git for-each-ref refs/tags --sort=-v:refname --format='%(refname)' --count=1 | awk -F/ '{print $3}')
1414
NEXT_VERSION=$(echo "${LATEST_TAG:1}" | awk -F. -v OFS=. '{$3=0}; {++$2}; {print}')
1515
PHP_VERSION=$(echo "<?= join('.', [PHP_MAJOR_VERSION, PHP_MINOR_VERSION]); ?>" | php 2>/dev/null)
1616

0 commit comments

Comments
 (0)