fix(ci): improve version checking in the CI pipeline

Update the version checking logic in the CI pipeline to ensure that 
the script correctly identifies the latest tag. The change checks 
if the latest tag is available before comparing it with the 
VERSION file, improving reliability in determining if a version 
bump is necessary.
This commit is contained in:
2024-11-27 15:09:37 +01:00
parent 76c4b8c5fa
commit 1f373fe38c
+2 -1
View File
@@ -52,7 +52,8 @@ unbound_release_handle_mr:
- 'apk add --no-cache git jq curl'
script:
- |
if [[ "$(cat VERSION)" == "$(git describe --abbrev=0 --tags)" ]]; then
LATEST="$(git describe --abbrev=0 --tags 2>/dev/null)"
if [[ -n "${LATEST}" && "$(cat VERSION)" == "${LATEST}" ]]; then
echo "No changes worthy of a version bump"
exit 0
fi