fix(ci): handle case where no tags are present in git #26

Merged
argoyle merged 1 commits from fix-git-tag-command-fallover into main 2024-11-27 14:17:55 +00:00
+1 -1
View File
@@ -52,7 +52,7 @@ unbound_release_handle_mr:
- 'apk add --no-cache git jq curl' - 'apk add --no-cache git jq curl'
script: script:
- | - |
LATEST="$(git describe --abbrev=0 --tags 2>/dev/null)" LATEST="$(git describe --abbrev=0 --tags 2>/dev/null || echo '')"
if [[ -n "${LATEST}" && "$(cat VERSION)" == "${LATEST}" ]]; then if [[ -n "${LATEST}" && "$(cat VERSION)" == "${LATEST}" ]]; then
echo "No changes worthy of a version bump" echo "No changes worthy of a version bump"
exit 0 exit 0