Skip to content

Commit 9807955

Browse files
authored
Merge pull request #18 from AlexAtkinson/fix/args
debug
2 parents db04c86 + 85e2998 commit 9807955

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

action.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,6 @@ runs:
4040
[[ "${{ inputs.force-patch-increment }}" == 'true' ]] && opt='-p'
4141
new_version="$(${{ github.action_path }}/scripts/detectNewVersion.sh $opt)"
4242
echo "new-version=$new_version" | tee $GITHUB_OUTPUT
43-
if [[ "$new_version" =~ "570" ]]; then
44-
echo -e "\e[01;31mERROR\e[00m: 570 - Invalid argument!"
45-
exit 1 || true
46-
fi
47-
if [[ "$new_version" =~ "590" ]]; then
48-
echo -e "\e[01;31mFATAL\e[00m: 501 - This is not a git repository!"
49-
exit 1 || true
50-
fi
51-
if [[ "$new_version" =~ "591" ]]; then
52-
echo -e "\e[01;31mERROR\e[0m: 591 - Unsupported origin host."
53-
exit 1 || true
54-
fi
55-
if [[ "$new_version" =~ "599" ]]; then
56-
echo -e "\e[01;31mERROR\e[00m: 599 - No feature, enhancement, fix, bugfix, hotfix, or ops branches detected!"
57-
exit 1 || true
58-
fi
59-
if [[ "$new_version" =~ "520" ]]; then
60-
echo -e "\e[01;31mERROR\e[00m: 599 - - You must source this script when specifying an environment variable! Eg: '. ./foo.sh -e bar_ver'"
61-
exit 1 || true
62-
fi
6343
shell: bash
6444

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

0 commit comments

Comments
 (0)