diff --git a/.github/workflows/gitflow.yml b/.github/workflows/gitflow.yml index 474082c..91d95d6 100644 --- a/.github/workflows/gitflow.yml +++ b/.github/workflows/gitflow.yml @@ -297,7 +297,7 @@ jobs: CHANGELOG=$( cat ${{ env.CHANGELOG }} \ | perl -0pe "s/(.*\n)*${{ env.VERSION_HEADER }}$VERSION\n//g" \ - | perl -0pe 's/(\n?)${{ env.VERSION_HEADER }}.*\n(.*\n)*/\1/g' \ + | perl -0pe 's/(\n?)${{ env.VERSION_HEADER }}.*\n?(.*\n?)*/\1/g' \ | perl -0pe 's/^\n*//g' \ | perl -0pe 's/\n*$//g' ) \ @@ -370,7 +370,7 @@ jobs: CHANGELOG=$( cat ${{ env.CHANGELOG }} \ | perl -0pe "s/(.*\n)*${{ env.VERSION_HEADER }}$VERSION\n//g" \ - | perl -0pe 's/(\n?)${{ env.VERSION_HEADER }}.*\n(.*\n)*/\1/g' \ + | perl -0pe 's/(\n?)${{ env.VERSION_HEADER }}.*\n?(.*\n?)*/\1/g' \ | perl -0pe 's/^\n*//g' \ | perl -0pe 's/\n*$//g' ) diff --git a/changelog.md b/changelog.md index 735d721..ce90b8a 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +## 2.3.3 + +- fix: solve issue that changelog is not parsed properly if changelog.md do not have last empty line + ## 2.3.2 - fix: solve issue that unexpected changelog-not-modified warning is printed