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.
This commit is contained in:
2024-08-14 20:02:33 +02:00
parent 587918136e
commit 8d607c7f0c

View File

@@ -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