Skip to content

Commit 55b038d

Browse files
committed
.github: only set latest tag on .0 releases
Prevent patch releases from stealing the "latest" tag from newer minor versions. Only vXX.YY and vXX.YY.0 releases should be marked as latest. Fixes #1187 Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 83b55ee commit 55b038d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
if echo $ver | grep -qE 'v[0-9.]+(-alpha|-beta|-rc)[0-9]*'; then
126126
echo "pre=true" >> $GITHUB_OUTPUT
127127
echo "latest=false" >> $GITHUB_OUTPUT
128-
elif echo $ver | grep -qE '^v[0-9.]+\.[0-9.]+(\.[0-9]+)?$'; then
128+
elif echo $ver | grep -qE '^v[0-9]+\.[0-9]+(\.0)?$'; then
129129
echo "pre=false" >> $GITHUB_OUTPUT
130130
echo "latest=true" >> $GITHUB_OUTPUT
131131
echo "cat=Releases" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)