Skip to content

Commit 7a6b1ea

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 5c08c48 commit 7a6b1ea

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
@@ -75,7 +75,7 @@ jobs:
7575
if echo $ver | grep -qE 'v[0-9.]+(-alpha|-beta|-rc)[0-9]*'; then
7676
echo "pre=true" >> $GITHUB_OUTPUT
7777
echo "latest=false" >> $GITHUB_OUTPUT
78-
elif echo $ver | grep -qE '^v[0-9.]+\.[0-9.]+(\.[0-9]+)?$'; then
78+
elif echo $ver | grep -qE '^v[0-9]+\.[0-9]+(\.0)?$'; then
7979
echo "pre=false" >> $GITHUB_OUTPUT
8080
echo "latest=true" >> $GITHUB_OUTPUT
8181
echo "cat=Releases" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)