Skip to content

Commit

Permalink
Simplify formatter check (#1078)
Browse files Browse the repository at this point in the history
This will display the diff, and return a non-zero exit code if there are changes
  • Loading branch information
simonbyrne authored Jun 4, 2023
1 parent 4bb35f5 commit 0be876e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/Format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,4 @@ jobs:
- name: Format check
run: |
julia -e '
out = Cmd(`git diff --name-only`) |> read |> String
if out == ""
exit(0)
else
@error "Some files have not been formatted !!!"
write(stdout, out)
exit(1)
end'
git diff --color=always --exit-code

0 comments on commit 0be876e

Please sign in to comment.