fix: exit early if no changes worthy of a version bump

This commit is contained in:
2024-10-06 11:46:15 +02:00
parent a5b83fe353
commit 01507626b9
+5 -1
View File
@@ -49,9 +49,13 @@ handle_mr:
needs: needs:
- changelog - changelog
before_script: before_script:
- 'apk add --no-cache jq curl' - 'apk add --no-cache git jq curl'
script: script:
- | - |
if [[ "$(cat VERSION)" == "$(git describe --abbrev=0 --tags)" ]]; then
echo "No changes worthy of a version bump"
exit 0
fi
echo "Fetching existing release MRs" echo "Fetching existing release MRs"
MRS=$(curl -s \ MRS=$(curl -s \
-H "Authorization: Bearer ${UNBOUND_RELEASE_TOKEN}" \ -H "Authorization: Bearer ${UNBOUND_RELEASE_TOKEN}" \