Skip to content

Commit

Permalink
ci: fix rc version handling
Browse files Browse the repository at this point in the history
The get_versions.sh script used to determine the version to use for
packaging, was prioritizing rc versions over stable ones. Fixed this so
it always returns the most recent stable version.
  • Loading branch information
swiatekm committed May 29, 2024
1 parent 480717c commit 006bb7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/get_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ parse_version_tag() {
# shellcheck disable=SC2153
version_tag="${VERSION_TAG}"
if [ -z "${version_tag}" ]; then
version_tag=$(git tag -l --sort -version:refname | head -n 1)
version_tag=$(git describe --tags --abbrev=0 --match "v[0-9]*" | head -n 1)
fi

version_regex="^v([0-9]+).([0-9]+).([0-9]+)((-(alpha|beta|rc|sumo)[-.]([0-9]+))(-(alpha|beta|rc).([0-9])+)?)?$"
Expand Down

0 comments on commit 006bb7a

Please sign in to comment.