Skip to content

Commit fdcc084

Browse files
committed
Remove 'latest' from version tags list in release workflow
1 parent 8937102 commit fdcc084

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ jobs:
155155
# Get all version tags (starting with 'v') and extract version numbers
156156
VERSIONS=$(git tag -l 'v*' | sed 's/^v//' | sort -V | tr '\n' ' ' | sed 's/ $//')
157157
158+
# Remove vlatest from the list if present
159+
VERSIONS=$(echo $VERSIONS | sed 's/\blatest\b//g' | xargs)
160+
158161
if [ -z "$VERSIONS" ]; then
159162
echo "Warning: No version tags found"
160163
VERSIONS="${{ github.event.release.tag_name }}"

0 commit comments

Comments
 (0)