We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0849e87 + be656c6 commit 847f82cCopy full SHA for 847f82c
1 file changed
.github/actions/run-linter/action.yml
@@ -49,4 +49,10 @@ runs:
49
fi
50
echo "Changed files:"
51
printf '%s\n' "${CHANGED_FILES[@]}"
52
+ # Filter out any empty strings that may have been added to the array
53
+ readarray -t CHANGED_FILES < <(printf '%s\n' "${CHANGED_FILES[@]}" | grep -v '^$')
54
+ if [[ "${#CHANGED_FILES[@]}" -eq 0 ]]; then
55
+ echo "No changed cpp files after filtering."
56
+ exit 0
57
+ fi
58
printf '%s\n' "${CHANGED_FILES[@]}" | parallel --verbose --jobs "$(nproc)" --plus _=[{#}/{##}] ${{ inputs.lint_program_with_args }} {}
0 commit comments