mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-06-27 02:52:58 +00:00
Add support for additional flags
Supported flags: * -e - respect existing tags * -s - strict matching
This commit is contained in:
@@ -22,6 +22,14 @@ if [[ ! -z "$INPUT_REPOSITORY_LOCAL" ]]; then
|
||||
FLAGS="${FLAGS} -l"
|
||||
fi
|
||||
|
||||
if [[ ! -z "$INPUT_STRICT" ]]; then
|
||||
FLAGS="${FLAGS} -s"
|
||||
fi
|
||||
|
||||
if [[ ! -z "$INPUT_EXISTING" ]]; then
|
||||
FLAGS="${FLAGS} -e"
|
||||
fi
|
||||
|
||||
if [[ "${FLAGS}" == "" && "$*" == "" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user