This commit is contained in:
parent
0a14dd411c
commit
7e0ad21a74
@ -36,10 +36,9 @@ jobs:
|
||||
args: --all
|
||||
- name: Format project with rustfmt
|
||||
run: |
|
||||
# Run format or exit if not required
|
||||
cargo fmt --all --check && echo "No formatting required, exiting early..." && exit 0
|
||||
cargo fmt --all --verbose
|
||||
|
||||
|
||||
# Check for format loop
|
||||
'[ "$(git log -1 --pretty=%B | grep -E ".+")" = "rustfmt" ] && echo "format loop detected, aborting..." && exit 1'
|
||||
|
||||
|
Reference in New Issue
Block a user