Skip to content

Commit 1e20f63

Browse files
committed
fix: changelog comparison URL in release workflow
1 parent 9376957 commit 1e20f63

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/create-release-tag.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
2424
VERSION="${BRANCH_NAME#release/v}"
2525
echo "version=$VERSION" >> $GITHUB_OUTPUT
2626
27+
- name: Get previous release tag
28+
id: previous_tag
29+
run: |
30+
PREVIOUS_TAG=$(git describe --tags --abbrev=0 HEAD~1 2>/dev/null || echo "")
31+
echo "previous_tag=$PREVIOUS_TAG" >> $GITHUB_OUTPUT
2732
- name: Create and push tag
2833
run: |
2934
git config --local user.email "github-actions[bot]@users.noreply.github.com"
@@ -54,6 +59,6 @@ jobs:
5459
```
5560
5661
### What's Changed
57-
See the [full changelog](https://github.com/${{ github.repository }}/compare/v${{ steps.extract_version.outputs.version }}...v${{ steps.extract_version.outputs.version }})
62+
See the [full changelog](https://github.com/${{ github.repository }}/compare/${{ steps.previous_tag.outputs.previous_tag }}...v${{ steps.extract_version.outputs.version }})
5863
draft: false
59-
prerelease: false
64+
prerelease: false

0 commit comments

Comments
 (0)