Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ inputs:
description: 'If set, check hidden files (those starting with ".") as well'
required: false
default: ''
quiet_level:
description: 'Bitmask that allows suppressing messages'
required: false
default: ''
exclude_file:
description: 'File with lines that should not be checked for spelling mistakes'
required: false
Expand Down
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ if [ -n "${INPUT_CHECK_HIDDEN}" ]; then
echo "Checking hidden"
command_args="${command_args} --check-hidden"
fi
echo "Check quiet level? '${INPUT_QUIET_LEVEL}'"
if [ -n "${INPUT_QUIET_LEVEL}" ]; then
echo "Checking quiet level"
command_args="${command_args} --quiet-level ${INPUT_QUIET_LEVEL}"
fi
echo "Exclude file '${INPUT_EXCLUDE_FILE}'"
if [ "x${INPUT_EXCLUDE_FILE}" != "x" ]; then
command_args="${command_args} --exclude-file ${INPUT_EXCLUDE_FILE}"
Expand Down
1 change: 1 addition & 0 deletions test/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function setup() {
# Set default input values
export INPUT_CHECK_FILENAMES=""
export INPUT_CHECK_HIDDEN=""
export INPUT_QUIET_LEVEL=""
export INPUT_EXCLUDE_FILE=""
export INPUT_SKIP=""
export INPUT_BUILTIN=""
Expand Down