Skip to content

Commit 5306ba7

Browse files
committed
fix: the latest version check in the releaser workflow
1 parent ee8edea commit 5306ba7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/releaser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ jobs:
7171
echo "suffix=$suffix" | tee -a $GITHUB_OUTPUT
7272
- id: latest
7373
if: steps.version.outputs.version != ''
74-
name: Determine latest version
74+
name: Determine latest version (only final versions)
7575
env:
7676
PREFIX: ${{ steps.version.outputs.prefix }}
7777
TAG: ${{ steps.version.outputs.tag }}
7878
run: |
7979
git fetch origin --tags
80-
echo -e "${TAG}\n$(git tag)" | grep "^${PREFIX}" | sort -V | tail -n1 | xargs -I{} echo "latest={}" | tee -a $GITHUB_OUTPUT
80+
echo -e "${TAG}\n$(git tag)" | grep "^${PREFIX}" | grep -v - | sort -V | tail -n1 | xargs -I{} echo "latest={}" | tee -a $GITHUB_OUTPUT
8181
- id: branch
8282
name: Check if the branch is a release branch
8383
if: steps.version.outputs.version != ''

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## Unreleased
88

9+
## [1.0.27] - 2025-06-15
10+
### Fixed
11+
- fixed the latest version check in the `releaser` workflow
12+
913
## [1.0.26] - 2025-06-15
1014
### Changed
1115
- updated the body of the issues created by the `tagpush` workflow

0 commit comments

Comments
 (0)