From 01507626b929b1e51fcc9bc67002743a996f3895 Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Sun, 6 Oct 2024 11:46:15 +0200 Subject: [PATCH] fix: exit early if no changes worthy of a version bump --- Release.gitlab-ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Release.gitlab-ci.yml b/Release.gitlab-ci.yml index ab82f02..a2d4577 100644 --- a/Release.gitlab-ci.yml +++ b/Release.gitlab-ci.yml @@ -49,9 +49,13 @@ handle_mr: needs: - changelog before_script: - - 'apk add --no-cache jq curl' + - 'apk add --no-cache git jq curl' 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" MRS=$(curl -s \ -H "Authorization: Bearer ${UNBOUND_RELEASE_TOKEN}" \