Skip to content

Commit

Permalink
Merge pull request #1289 from e10harvey/format_check
Browse files Browse the repository at this point in the history
Fix bug in format check
  • Loading branch information
lucbv authored Jan 25, 2022
2 parents 0aac3c3 + e897518 commit bcc505d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ jobs:
# For every file changed, apply clang-format
for file in $(git diff --name-only origin/$GITHUB_BASE_REF | egrep '.*\.cpp$|.*\.hpp$|.*\.h$'); do
clang-format-8 -i -style=file $file
git add $file
if [ -e $file ]; then
clang-format-8 -i -style=file $file
git add $file
fi
done
# If any diffs exist, error out
Expand Down

0 comments on commit bcc505d

Please sign in to comment.