Skip to content
Snippets Groups Projects
Unverified Commit f5e24ee1 authored by Timo Furrer's avatar Timo Furrer
Browse files

Fix last stable version finding in release script

Changelog: development
parent 50b55970
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ echo "${version}" | "${script_dir}/check-semantic-version.sh" ...@@ -27,7 +27,7 @@ echo "${version}" | "${script_dir}/check-semantic-version.sh"
echo "Starting release process for ${version} ..." echo "Starting release process for ${version} ..."
echo "Determing last stable version ..." echo "Determing last stable version ..."
last_stable_version_sha="$(git describe --tags --match '*.*.*' | xargs git rev-list -n1)" last_stable_version_sha="$(git tag | grep -E '^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$' | sort --version-sort --reverse | head -n1 | xargs git rev-list -n1)"
echo "Using commit '${last_stable_version_sha}' to start the changelog from ..." echo "Using commit '${last_stable_version_sha}' to start the changelog from ..."
echo "Creating changelog ..." echo "Creating changelog ..."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment