1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-24 08:12:38 +02:00

Fix autorelease

This commit is contained in:
DarthSim 2021-12-15 21:25:51 +06:00
parent 9370200218
commit 59a1db3dc2

View File

@ -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!