Skip to content

Commit fc8c4e8

Browse files
committed
[autosync]
1 parent 383f95f commit fc8c4e8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/SemanticRelease.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ jobs:
5151
id: increment
5252
if: steps.parse.outputs.type != 'none'
5353
run: |
54-
# strip 'v' prefix if present, and sort them as versions
55-
LATEST_VERSION=$(git tag | sed 's/^v//' | sort -V | tail -n 1)
54+
LATEST_VERSION=$(git tag | sed -E -n 's/^v//; /^[0-9]+\.[0-9]+\.[0-9]+$/p' | sort -V | tail -n 1)
5655
5756
if [ -z "$LATEST_VERSION" ]; then
5857
LATEST_VERSION="0.0.0"

0 commit comments

Comments
 (0)