support multiple check flag in gha
@@ -17,7 +17,6 @@ export BC_SOURCE=githubActions
# Actions pass inputs as $INPUT_<input name> environment variables
#
-[[ -n "$INPUT_CHECK" ]] && CHECK_FLAG="--check $INPUT_CHECK"
[[ -n "$INPUT_SKIP_CHECK" ]] && SKIP_CHECK_FLAG="--skip-check $INPUT_SKIP_CHECK"
[[ -n "$INPUT_FRAMEWORK" ]] && FRAMEWORK_FLAG="--framework $INPUT_FRAMEWORK"
[[ -n "$INPUT_OUTPUT_FORMAT" ]] && OUTPUT_FLAG="--output $INPUT_OUTPUT_FORMAT"
@@ -57,6 +56,16 @@ if [ -n "$INPUT_EXTERNAL_CHECKS_DIRS" ]; then
done
fi
+[[ -n "$INPUT_CHECK" ]] && ="--check $INPUT_CHECK"
+CHECK_FLAG=""
+if [ -n "$INPUT_CHECK" ]; then
+ IFS=', ' read -r -a checks <<< "$INPUT_CHECK"
+ for d in "${checks[@]}"
+ do
+ CHECK_FLAG="$CHECK_FLAG --check $d"
+ done
+fi
+
EXTCHECK_REPOS_FLAG=""
if [ -n "$INPUT_EXTERNAL_CHECKS_REPOS" ]; then
IFS=', ' read -r -a extchecks_git <<< "$INPUT_EXTERNAL_CHECKS_REPOS"
