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:
2
.github/workflows/CreateRelease.yml
vendored
2
.github/workflows/CreateRelease.yml
vendored
@@ -56,7 +56,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ "${{ env.VERSION }}" == "${{ env.PREVIOUS_TAG }}" ]; then
|
if [ "${{ env.VERSION }}" == "${{ env.PREVIOUS_TAG }}" ]; then
|
||||||
echo "Version has not changed. No release will be created."
|
echo "Version has not changed. No release will be created."
|
||||||
exit 0
|
exit 1
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user