From c8b43a3f8f11cfac43514e9d17147f4eb4547e01 Mon Sep 17 00:00:00 2001 From: Alexander Lyall Date: Sat, 21 Mar 2026 22:50:21 +0000 Subject: [PATCH] fix(release): exclude current tag from previous tag lookup and handle empty result - Exclude newly created tag from PREV_TAG detection to avoid self-referencing ranges - Add fallback to prevent workflow failure when no previous tag exists - Update Node version in workflow configuration Signed-off-by: Alexander Lyall --- .gitea/workflows/release.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index c585f07..cecc9e3 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -95,8 +95,10 @@ jobs: PREV_TAG="$( git tag --list 'v*' \ | grep -E '^v[0-9]{2}\.[0-9]{2}\.[0-9]{2}[a-z]$' \ + | grep -Fxv "$TAG" \ | sort -V \ - | tail -n 1 + | tail -n 1 \ + || true )" if [ -n "$PREV_TAG" ]; then @@ -196,7 +198,7 @@ jobs: - name: Set up Node uses: actions/setup-node@v6 with: - node-version: 22.22.1 + node-version: 25 cache: npm - name: Check Node version