Skip to content

Commit

Permalink
Changed default exlude folders and added errors handling in script
Browse files Browse the repository at this point in the history
  • Loading branch information
ydementieiev committed Jan 5, 2024
1 parent ded51b7 commit 79d3e69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ inputs:
exclude_folders:
description: 'Folders to exclude from formatting check'
required: false
default: '3rdparty,3rd_party'
default: ''
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ find_and_check_files() {
while IFS= read -r -d '' file; do
format_diff "$file"
done < <(find "$include_paths" "${exclude_paths[@]/#/-path }" -prune -o -name '*.h' -print0 -o -name '*.cpp' -print0)
local find_status=$?

if [[ "${find_status}" -ne 0 ]]; then
echo "Find command failed with status ${find_status}"
exit_code=1 # Indicate that an issue was found
fi
}

# Main execution
Expand Down

0 comments on commit 79d3e69

Please sign in to comment.