mirror of
https://github.com/ludeeus/action-shellcheck.git
synced 2025-01-18 17:41:58 +01:00
Remove debug messages (#72)
This commit is contained in:
parent
3d0de11d23
commit
6b1b9b1437
@ -116,16 +116,13 @@ runs:
|
|||||||
excludes+=("! -path *.go")
|
excludes+=("! -path *.go")
|
||||||
excludes+=("! -path */mvnw")
|
excludes+=("! -path */mvnw")
|
||||||
if [[ -n "${INPUT_IGNORE}" ]]; then
|
if [[ -n "${INPUT_IGNORE}" ]]; then
|
||||||
echo "::warning::ignore is deprecated. Please use ignore_paths instead"
|
|
||||||
for path in ${INPUT_IGNORE}; do
|
for path in ${INPUT_IGNORE}; do
|
||||||
echo "::debug:: Adding '$path' to excludes"
|
|
||||||
excludes+=("! -path *./$path/*")
|
excludes+=("! -path *./$path/*")
|
||||||
excludes+=("! -path */$path/*")
|
excludes+=("! -path */$path/*")
|
||||||
excludes+=("! -path $path")
|
excludes+=("! -path $path")
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
for path in ${INPUT_IGNORE_PATHS}; do
|
for path in ${INPUT_IGNORE_PATHS}; do
|
||||||
echo "::debug:: Adding '$path' to excludes"
|
|
||||||
excludes+=("! -path *./$path/*")
|
excludes+=("! -path *./$path/*")
|
||||||
excludes+=("! -path */$path/*")
|
excludes+=("! -path */$path/*")
|
||||||
excludes+=("! -path $path")
|
excludes+=("! -path $path")
|
||||||
@ -133,7 +130,6 @@ runs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
for name in ${INPUT_IGNORE_NAMES}; do
|
for name in ${INPUT_IGNORE_NAMES}; do
|
||||||
echo "::debug:: Adding '$name' to excludes"
|
|
||||||
excludes+=("! -name $name")
|
excludes+=("! -name $name")
|
||||||
done
|
done
|
||||||
echo "excludes=${excludes[@]}" >> $GITHUB_OUTPUT
|
echo "excludes=${excludes[@]}" >> $GITHUB_OUTPUT
|
||||||
@ -148,7 +144,6 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
declare -a files
|
declare -a files
|
||||||
for file in ${INPUT_ADDITIONAL_FILES}; do
|
for file in ${INPUT_ADDITIONAL_FILES}; do
|
||||||
echo "::debug:: Adding '$file' to additional files"
|
|
||||||
files+=("-o -name *$file")
|
files+=("-o -name *$file")
|
||||||
done
|
done
|
||||||
echo "files=${files[@]}" >> $GITHUB_OUTPUT
|
echo "files=${files[@]}" >> $GITHUB_OUTPUT
|
||||||
@ -219,7 +214,6 @@ runs:
|
|||||||
"${filepaths[@]}" || statuscode=$?
|
"${filepaths[@]}" || statuscode=$?
|
||||||
else
|
else
|
||||||
for file in "${filepaths[@]}"; do
|
for file in "${filepaths[@]}"; do
|
||||||
echo "::debug::Checking '$file'"
|
|
||||||
"${{ github.action_path }}/shellcheck" \
|
"${{ github.action_path }}/shellcheck" \
|
||||||
${INPUT_SHELLCHECK_OPTIONS} \
|
${INPUT_SHELLCHECK_OPTIONS} \
|
||||||
"$file" || statuscode=$?
|
"$file" || statuscode=$?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user