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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user