Skip to content

Commit 7e7899b

Browse files
committed
Add files input
1 parent 8d60852 commit 7e7899b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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: ''
4953
runs:
5054
using: 'docker'
5155
image: 'Dockerfile'

entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ echo "Regular expression that is used to find words: '${INPUT_SKIP}'"
4848
if [ "x${INPUT_REGEX}" != "x" ]; then
4949
command_args="${command_args} --regex ${INPUT_REGEX}"
5050
fi
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
5155
echo "Resulting CLI options ${command_args}"
5256
exec 5>&1
5357
res=`{ { codespell --count ${command_args} ${INPUT_PATH}; echo $? 1>&4; } 1>&5; } 4>&1`

0 commit comments

Comments
 (0)