Skip to content

Commit

Permalink
Fix autorelease
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthSim committed Dec 15, 2021
1 parent 9370200 commit 59a1db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ jobs:
command: |
# Extract changelog entries between this and previous version headers
escaped_version=$(echo ${CIRCLE_TAG#v} | sed -e 's/[]\/$*.^[]/\\&/g')
description_body=$(awk "BEGIN{inrelease=0} /## \[${escaped_version}\]/{inrelease=1;next} /## \[[0-9]+\.[0-9]+\.[0-9]+.+\]/{inrelease=0;exit} {if (inrelease) print}" CHANGELOG.md)
description_body=$(awk "BEGIN{inrelease=0} /## \[${escaped_version}\]/{inrelease=1;next} /## \[[0-9]+\.[0-9]+\.[0-9]+.*\]/{inrelease=0;exit} {if (inrelease) print}" CHANGELOG.md)
# Add pre-release option if tag name has any suffix after vMAJOR.MINOR.PATCH
[[ ${CIRCLE_TAG} =~ ^v[0-9]+\.[0-9]+\.[0-9]+.+ ]] && prerelease="--pre-release"
# Create release!
Expand Down

0 comments on commit 59a1db3

Please sign in to comment.