Skip to content

Commit 84729bb

Browse files
authored
Merge pull request #21 from AlexAtkinson/fix/error_output
DEVOPS-00: Fix if statement
2 parents f534731 + 04ec6e4 commit 84729bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ runs:
4040
[[ "${{ inputs.force-patch-increment }}" == 'true' ]] && opt='-p'
4141
new_version="$(${{ github.action_path }}/scripts/detectNewVersion.sh $opt)" || true
4242
echo "new-version=$new_version" | tee $GITHUB_OUTPUT
43-
fi
4443
if [[ "$new_version" =~ "520" ]]; then
45-
echo -e "ERROR: 599 - - You must source this script when specifying an environment variable! Eg: '. ./foo.sh -e bar_ver'"
44+
echo -e "ERROR: 520 - You must source this script when specifying an environment variable! Eg: '. ./foo.sh -e bar_ver'"
4645
exit 1 || true
4746
fi
4847
if [[ "$new_version" =~ "570" ]]; then
@@ -60,6 +59,7 @@ runs:
6059
if [[ "$new_version" =~ "599" ]]; then
6160
echo -e "ERROR: 599 - No feature, enhancement, fix, bugfix, hotfix, or ops branches detected!"
6261
exit 1 || true
62+
fi
6363
shell: bash
6464

6565
# See github contexts for more like github.action_path.

0 commit comments

Comments
 (0)