From 8d607c7f0c8776177134fc7bb786736ab8e0f2d2 Mon Sep 17 00:00:00 2001 From: Max P Date: Wed, 14 Aug 2024 20:02:33 +0200 Subject: [PATCH] Change exit code for unchanged version condition Modified the workflow to exit with code 1 instead of 0 when the version has not changed. This prevents the release job from being considered successful when no new release is created, improving the accuracy of pipeline status. --- .github/workflows/CreateRelease.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CreateRelease.yml b/.github/workflows/CreateRelease.yml index 3bfab7c..0099559 100644 --- a/.github/workflows/CreateRelease.yml +++ b/.github/workflows/CreateRelease.yml @@ -56,7 +56,7 @@ jobs: run: | if [ "${{ env.VERSION }}" == "${{ env.PREVIOUS_TAG }}" ]; then echo "Version has not changed. No release will be created." - exit 0 + exit 1 fi shell: bash