From 5bd3f4ae8134f877f644258367511def80806979 Mon Sep 17 00:00:00 2001 From: Viktor Stamoff Date: Thu, 30 Apr 2026 13:27:23 +0200 Subject: [PATCH] fix(ci): use annotated tag and scope bump detection to commit subject --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e806ea9..0b94fd0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: - name: Determine bump type id: bump run: | - MSG="${{ github.event.head_commit.message }}" + MSG=$(echo "${{ github.event.head_commit.message }}" | head -1) if echo "$MSG" | grep -qiE "(BREAKING CHANGE|^[a-z]+(\([^)]*\))?!:)"; then echo "type=major" >> "$GITHUB_OUTPUT" elif echo "$MSG" | grep -qE "^feat(\([^)]*\))?:"; then @@ -80,7 +80,7 @@ jobs: git config user.email "github-actions[bot]@users.noreply.github.com" git add pyproject.toml src/main.py git commit -m "chore: bump version ${{ steps.version.outputs.current }} -> ${{ steps.version.outputs.new }}" - git tag "v${{ steps.version.outputs.new }}" + git tag -a "v${{ steps.version.outputs.new }}" -m "Release v${{ steps.version.outputs.new }}" git push origin main --follow-tags - name: Create GitHub Release