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