Skip to content

Commit

Permalink
YDA-5623: fail workflow if code is not properly formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Mar 11, 2024
1 parent 3001fe1 commit 01a335e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/linter-irods-clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ jobs:
- name: Run ClangFormat
run: |
echo "warnings=$(clang-format -n src/* | wc -l)" >> "$GITHUB_ENV"
- name: Use the value
run: |
printf '%s\n' "$warnings"

0 comments on commit 01a335e

Please sign in to comment.