Skip to content

Commit 012e1d1

Browse files
authored
Merge pull request #51 from vanducng/fix/changelog-comparison-url
fix: changelog comparison URL in release workflow
2 parents 9376957 + c7630bb commit 012e1d1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ 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
32+
2733
- name: Create and push tag
2834
run: |
2935
git config --local user.email "github-actions[bot]@users.noreply.github.com"
@@ -54,6 +60,6 @@ jobs:
5460
```
5561
5662
### 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 }})
63+
See the [full changelog](https://github.com/${{ github.repository }}/compare/${{ steps.previous_tag.outputs.previous_tag }}...v${{ steps.extract_version.outputs.version }})
5864
draft: false
59-
prerelease: false
65+
prerelease: false

0 commit comments

Comments
 (0)