Skip to content

Commit

Permalink
Add a temporary fix for clang-format workflow
Browse files Browse the repository at this point in the history
This should fix the issue where a non-zero exit code is returned by clang-format even if the files are correctly formatted.
  • Loading branch information
wopss committed Feb 5, 2023
1 parent ef68e47 commit 8a36bc7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
Write-Output $output
if ($output -ne $null -and $output -ine "no modified files to format") {
exit 1
# A temporary fix for https://github.com/llvm/llvm-project/issues/56736.
# TODO: Once LLVM 16 is released, reduce this to only the "git ... clang-format ..." command.
if ($LASTEXITCODE -eq 1 -and !$output) {
exit 0
}

0 comments on commit 8a36bc7

Please sign in to comment.