Skip to content

Commit

Permalink
fix:version
Browse files Browse the repository at this point in the history
  • Loading branch information
Guovin committed Mar 27, 2024
1 parent 999bd51 commit 3ca3796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Get changelog
id: get_changelog
run: |
current_version="${{ env.version }}"
current_version="v${{ env.version }}"
if grep -q "^## $current_version$" CHANGELOG.md; then
changelog=$(awk -v ver="^## $current_version$" '/^##/{if(p && $0 !~ ver) exit; p=1} p' CHANGELOG.md)
else
Expand Down

0 comments on commit 3ca3796

Please sign in to comment.