Add support for additional flags

Supported flags:
* -e - respect existing tags
* -s - strict matching
This commit is contained in:
2023-03-30 13:53:18 +01:00
parent 601f486b60
commit 817fb91dba
5 changed files with 97 additions and 22 deletions
+8
View File
@@ -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