File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ inputs:
4646 description : " Regular expression that is used to find words"
4747 required : false
4848 default : ' '
49+ files :
50+ description : " Files or directories to check"
51+ required : false
52+ default : ' '
4953runs :
5054 using : ' docker'
5155 image : ' Dockerfile'
Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ echo "Regular expression that is used to find words: '${INPUT_SKIP}'"
4848if [ " x${INPUT_REGEX} " != " x" ]; then
4949 command_args=" ${command_args} --regex ${INPUT_REGEX} "
5050fi
51+ echo " Files or directories to check: '${INPUT_SKIP} '"
52+ if [ " x${INPUT_FILES} " != " x" ]; then
53+ command_args=" ${command_args} --regex ${INPUT_FILES} "
54+ fi
5155echo " Resulting CLI options ${command_args} "
5256exec 5>&1
5357res=` { { codespell --count ${command_args} ${INPUT_PATH} ; echo $? 1>&4 ; } 1>&5 ; } 4>&1 `
You can’t perform that action at this time.
0 commit comments