Skip to content

Commit 0218853

Browse files
fix: resolve auto-release issue for LTS branch
Signed-off-by: Patrick Stephens <pat@fluent.do>
1 parent 47c83e0 commit 0218853

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/cron-auto-release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ jobs:
111111
run: |
112112
if [[ "$BRANCH" != 'main' ]]; then
113113
echo "Creating next tag name in sequence"
114-
# Get last tag for branch
115-
LAST_TAG=$(git describe --tags --match="v*" origin/"$BRANCH" --abbrev=0)
114+
# Get last tag for glob
115+
LAST_TAG=$(git tag -n 1 "v25.10*" --format='%(refname:strip=2)' | head -n 1)
116116
echo "Found last tag=$LAST_TAG"
117117
VNUM1=$(echo "$LAST_TAG" | cut -d"." -f1)
118118
VNUM2=$(echo "$LAST_TAG" | cut -d"." -f2)

0 commit comments

Comments
 (0)