Skip to content

Commit

Permalink
Merge pull request #31 from Guovin/dev
Browse files Browse the repository at this point in the history
fix:version
  • Loading branch information
Guovin authored Mar 27, 2024
2 parents c509960 + 3ca3796 commit 6f7e841
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 6f7e841

Please sign in to comment.